Warna bernama terdekat · #5271CF
#5271CF
Warna bernama terdekat: Royal Blue
#5271CF (rgb(82 113 207), hsl(225 57% 57%), oklch(0.572 0.149 267.8)) paling mendekati warna bernama Royal Blue. Lihat tint, shade, harmoni, kontras WCAG & APCA, serta kode CSS, Tailwind v4, dan SCSS.
#5271CF
oklch(0.572 0.149 267.8)
Konversi warna
- HEX
- #5271cf
- RGB
- rgb(82 113 207)
- HSL
- hsl(225 57% 57%)
- HWB
- hwb(225 32% 19%)
- OKLCH
- oklch(0.572 0.149 267.8)
- OKLab
- oklab(0.572 -0.006 -0.149)
- CIE Lab
- lab(48.88 11.12 -53.07)
- LCH
- lch(48.88 54.22 281.8)
- CMYK
- cmyk(60% 45% 0% 19%)
Tint · Shade · Tone
Tint
- 6280D5
- 728EDA
- 829CE0
- 93AAE5
- A5B8EA
- B6C6EF
- C8D4F3
- DAE3F7
- ECF1FB
Shade
- 4661B4
- 3B5299
- 2F437F
- 253567
- 1A274F
- 111A38
- 080E23
- 020410
- 000102
Tone
- 5673C8
- 5B75C0
- 6077B8
- 6479B1
- 697BA9
- 6D7CA1
- 727D99
- 777E91
- 7B7F89
Harmoni warna
Komplementer +180°
- 5271CF
Royal Blue
- 957300
≈ Sandy Taupe
Analog -30° +30°
- 5271CF
Royal Blue
- 0081B9
≈ Tall Ships
- 8361C3
≈ Lavish Spending
Triadik +120° +240°
- 5271CF
Royal Blue
- C04E44
≈ Le Corbusier Crush
- 258F40
≈ Green Ribbon
Split-komplementer +150° +210°
- 5271CF
Royal Blue
- B25F00
≈ Orangish Brown
- 728100
≈ Verde Tropa
Tetradik +90° +180° +270°
Kontras & aksesibilitas
Ag
AADi atas putih
WCAG 4.54:1 · APCA Lc 71
Ag
AADi atas hitam
WCAG 4.62:1 · APCA Lc 30
Warna teks terbaik: #000000
WCAG 4.62:1 (AA) · APCA Lc 30
Contrast pairs
Cuplikan kode
CSS
:root {
--royal-blue: #5271cf;
--royal-blue-rgb: 82 113 207;
--royal-blue-oklch: oklch(0.572 0.149 267.8);
}
.element {
color: var(--royal-blue);
background-color: hsl(225 57% 57%);
border-color: oklch(0.572 0.149 267.8);
}Tailwind CSS v4
@theme {
--color-royal-blue: #5271cf;
--color-royal-blue-50: #e4f4ff;
--color-royal-blue-100: #d4e6ff;
--color-royal-blue-200: #bbd2ff;
--color-royal-blue-300: #99b3ff;
--color-royal-blue-400: #7899f6;
--color-royal-blue-500: #5c7ee8;
--color-royal-blue-600: #4e6bc3;
--color-royal-blue-700: #3e569d;
--color-royal-blue-800: #2a3f75;
--color-royal-blue-900: #1c2b53;
--color-royal-blue-950: #0c1838;
}SCSS
$royal-blue: #5271cf;
$royal-blue-rgb: 82, 113, 207;
$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);
}