#1B227E#1B227E
#1B227E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.152 H 270.9°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).
Color values
| HEX | #1B227E |
|---|---|
| RGB | rgb(27, 34, 126) |
| HSL | hsl(236, 65%, 30%) |
| HSV | hsv(236, 79%, 49%) |
| CMYK | cmyk(78.6%, 73%, 0%, 50.6%) |
| CIE-LAB | lab(19.57, 31.36, -52.44) |
| CIE-LCH | lch(19.57, 61.10, 300.88°) |
| OKLab | oklab(31.96% 0.0024 -0.1518) |
| OKLCH | oklch(31.96% 0.152 270.9) |
| XYZ | xyz(4.7886, 2.8829, 20.0387) |
| Luminance | 0.0288 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.96
Royal
#0C1793
ΔE00 4.32
Dark Royal Blue
#02066F
ΔE00 6.45
Darkblue
#00008B
ΔE00 6.86
Navy
#000080
ΔE00 6.89
Deep Blue
#040273
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B227E #7E771B
analogous
#1B537E #1B227E #461B7E
triadic
#1B227E #7E1B22 #227E1B
tetradic
#1B227E #7E1B53 #7E771B #1B7E46
square
#1B227E #7E1B53 #7E771B #1B7E46
split-complementary
#1B227E #7E461B #537E1B
monochromatic
#050719 #10144C #1B227E #2630B0 #3E49D6
Accessibility & contrast
On white
13.32
#1B227E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#1B227E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B227E
13.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B227E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B227E | 1.00 | 13.32 | 1.58 | 13.32 |
| #FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #1b227e; /* rgb */ color: rgb(27, 34, 126); /* oklch */ color: oklch(32.0% 0.152 270.9);
Tailwind
colors: {
custom: {
50: '#695da4',
500: '#1b227e',
950: '#000000',
},
}SCSS
$custom: #1b227e; $custom-light: #695da4; $custom-dark: #000000;
JSON
{
"hex": "#1b227e",
"rgb": {
"r": 27,
"g": 34,
"b": 126
},
"hsl": {
"h": 235.758,
"s": 64.706,
"l": 30
},
"oklch": {
"l": 0.31958,
"c": 0.15181,
"h": 270.9
},
"luminance": 0.02883
}Semantic roles & 50–950 ramp
primary
#1B227E
secondary
#B2AA43
accent
#DC40E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F