Warna bernama terdekat · #5171D4
#5171D4
Warna bernama terdekat: Royal Blue
#5171D4 (rgb(81 113 212), hsl(225 60% 57%), oklch(0.575 0.156 267.8)) paling mendekati warna bernama Royal Blue. Lihat tint, shade, harmoni, kontras WCAG & APCA, serta kode CSS, Tailwind v4, dan SCSS.
#5171D4
oklch(0.575 0.156 267.8)
Konversi warna
- HEX
- #5171d4
- RGB
- rgb(81 113 212)
- HSL
- hsl(225 60% 57%)
- HWB
- hwb(225 32% 17%)
- OKLCH
- oklch(0.575 0.156 267.8)
- OKLab
- oklab(0.575 -0.006 -0.156)
- CIE Lab
- lab(49.08 12.29 -55.59)
- LCH
- lch(49.08 56.94 282.5)
- CMYK
- cmyk(62% 47% 0% 17%)
Tint · Shade · Tone
Tint
- 6180D9
- 718EDF
- 829CE4
- 93ABE8
- A4B9ED
- B6C7F1
- C8D5F5
- DAE3F9
- ECF1FC
Shade
- 4561B8
- 3A529D
- 2F4383
- 243569
- 1A2751
- 101A3A
- 070E24
- 020410
- 000102
Tone
- 5673CC
- 5A76C4
- 5F78BC
- 6479B4
- 687BAB
- 6D7CA3
- 727D9B
- 767E92
- 7B7F89
Harmoni warna
Komplementer +180°
- 5171D4
Royal Blue
- 967300
≈ Sandy Taupe
Analog -30° +30°
- 5171D4
Royal Blue
- 0082BA
≈ Tall Ships
- 8560C8
≈ Fuchsia Blue
Triadik +120° +240°
- 5171D4
Royal Blue
- C44C42
≈ Sweet Baby Rose
- 1C903E
≈ Green Ribbon
Split-komplementer +150° +210°
- 5171D4
Royal Blue
- B36000
≈ Orangish Brown
- 738200
≈ Verde Tropa
Tetradik +90° +180° +270°
Kontras & aksesibilitas
Ag
AADi atas putih
WCAG 4.50:1 · APCA Lc 71
Ag
AADi atas hitam
WCAG 4.66:1 · APCA Lc 31
Warna teks terbaik: #000000
WCAG 4.66:1 (AA) · APCA Lc 31
Contrast pairs
Cuplikan kode
CSS
:root {
--royal-blue: #5171d4;
--royal-blue-rgb: 81 113 212;
--royal-blue-oklch: oklch(0.575 0.156 267.8);
}
.element {
color: var(--royal-blue);
background-color: hsl(225 60% 57%);
border-color: oklch(0.575 0.156 267.8);
}Tailwind CSS v4
@theme {
--color-royal-blue: #5171d4;
--color-royal-blue-50: #e3f4ff;
--color-royal-blue-100: #d3e6ff;
--color-royal-blue-200: #bad2ff;
--color-royal-blue-300: #98b3ff;
--color-royal-blue-400: #7699fa;
--color-royal-blue-500: #5a7dec;
--color-royal-blue-600: #4c6ac7;
--color-royal-blue-700: #3d55a0;
--color-royal-blue-800: #283f78;
--color-royal-blue-900: #1b2b55;
--color-royal-blue-950: #0c1839;
}SCSS
$royal-blue: #5171d4;
$royal-blue-rgb: 81, 113, 212;
$royal-blue-light: mix(#fff, $royal-blue, 20%);
$royal-blue-dark: mix(#000, $royal-blue, 20%);
.element {
color: $royal-blue;
box-shadow: 0 0 0 2px rgba($royal-blue, 0.35);
}