#1B217E#1B217E
#1B217E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.153 H 271.1°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).
Color values
| HEX | #1B217E |
|---|---|
| RGB | rgb(27, 33, 126) |
| HSL | hsl(236, 65%, 30%) |
| HSV | hsv(236, 79%, 49%) |
| CMYK | cmyk(78.6%, 73.8%, 0%, 50.6%) |
| CIE-LAB | lab(19.34, 32.00, -52.82) |
| CIE-LCH | lch(19.34, 61.76, 301.21°) |
| OKLab | oklab(31.79% 0.0029 -0.1529) |
| OKLCH | oklch(31.79% 0.153 271.1) |
| XYZ | xyz(4.7605, 2.8266, 20.0293) |
| Luminance | 0.0283 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.77
Royal
#0C1793
ΔE00 4.12
Dark Royal Blue
#02066F
ΔE00 6.18
Darkblue
#00008B
ΔE00 6.59
Navy
#000080
ΔE00 6.60
Deep Blue
#040273
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B217E #7E781B
analogous
#1B527E #1B217E #471B7E
triadic
#1B217E #7E1B21 #217E1B
tetradic
#1B217E #7E1B52 #7E781B #1B7E47
square
#1B217E #7E1B52 #7E781B #1B7E47
split-complementary
#1B217E #7E471B #527E1B
monochromatic
#050719 #10144C #1B217E #262EB0 #3E47D6
Accessibility & contrast
On white
13.42
#1B217E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#1B217E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B217E
13.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B217E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B217E | 1.00 | 13.42 | 1.57 | 13.42 |
| #FFFFFF | 13.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #1b217e; /* rgb */ color: rgb(27, 33, 126); /* oklch */ color: oklch(31.8% 0.153 271.1);
Tailwind
colors: {
custom: {
50: '#6a5da4',
500: '#1b217e',
950: '#000000',
},
}SCSS
$custom: #1b217e; $custom-light: #6a5da4; $custom-dark: #000000;
JSON
{
"hex": "#1b217e",
"rgb": {
"r": 27,
"g": 33,
"b": 126
},
"hsl": {
"h": 236.364,
"s": 64.706,
"l": 30
},
"oklch": {
"l": 0.3179,
"c": 0.15294,
"h": 271.1
},
"luminance": 0.02827
}Semantic roles & 50–950 ramp
primary
#1B217E
secondary
#B2AB43
accent
#DE40E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F