#1B217F#1B217F
#1B217F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.154 H 271.0°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).
Color values
| HEX | #1B217F |
|---|---|
| RGB | rgb(27, 33, 127) |
| HSL | hsl(236, 65%, 30%) |
| HSV | hsv(236, 79%, 50%) |
| CMYK | cmyk(78.7%, 74%, 0%, 50.2%) |
| CIE-LAB | lab(19.44, 32.37, -53.28) |
| CIE-LCH | lch(19.44, 62.34, 301.28°) |
| OKLab | oklab(31.9% 0.0028 -0.1542) |
| OKLCH | oklch(31.9% 0.154 271) |
| XYZ | xyz(4.8253, 2.8525, 20.3708) |
| Luminance | 0.0285 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.88
Royal
#0C1793
ΔE00 3.98
Dark Royal Blue
#02066F
ΔE00 6.21
Darkblue
#00008B
ΔE00 6.51
Navy
#000080
ΔE00 6.56
Deep Blue
#040273
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B217F #7F791B
analogous
#1B537F #1B217F #471B7F
triadic
#1B217F #7F1B21 #217F1B
tetradic
#1B217F #7F1B53 #7F791B #1B7F47
square
#1B217F #7F1B53 #7F791B #1B7F47
split-complementary
#1B217F #7F471B #537F1B
monochromatic
#06071A #10144D #1B217F #262EB1 #3E47D6
Accessibility & contrast
On white
13.37
#1B217F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#1B217F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B217F
13.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B217F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B217F | 1.00 | 13.37 | 1.57 | 13.37 |
| #FFFFFF | 13.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #1b217f; /* rgb */ color: rgb(27, 33, 127); /* oklch */ color: oklch(31.9% 0.154 271.0);
Tailwind
colors: {
custom: {
50: '#6a5da5',
500: '#1b217f',
950: '#000000',
},
}SCSS
$custom: #1b217f; $custom-light: #6a5da5; $custom-dark: #000000;
JSON
{
"hex": "#1b217f",
"rgb": {
"r": 27,
"g": 33,
"b": 127
},
"hsl": {
"h": 236.4,
"s": 64.935,
"l": 30.196
},
"oklch": {
"l": 0.319,
"c": 0.15426,
"h": 271
},
"luminance": 0.02853
}Semantic roles & 50–950 ramp
primary
#1B217F
secondary
#B3AC43
accent
#DE40E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F