#1B227B#1B227B
#1B227B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.148 H 271.1°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).
Color values
| HEX | #1B227B |
|---|---|
| RGB | rgb(27, 34, 123) |
| HSL | hsl(236, 64%, 29%) |
| HSV | hsv(236, 78%, 48%) |
| CMYK | cmyk(78%, 72.4%, 0%, 51.8%) |
| CIE-LAB | lab(19.25, 30.24, -51.05) |
| CIE-LCH | lch(19.25, 59.33, 300.64°) |
| OKLab | oklab(31.64% 0.0028 -0.1477) |
| OKLCH | oklch(31.64% 0.148 271.1) |
| XYZ | xyz(4.5980, 2.8066, 19.0345) |
| Luminance | 0.0281 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.72
Royal
#0C1793
ΔE00 4.75
Dark Royal Blue
#02066F
ΔE00 6.42
Darkblue (survey)
#030764
ΔE00 6.87
Deep Blue
#040273
ΔE00 6.95
Navy
#000080
ΔE00 7.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B227B #7B741B
analogous
#1B527B #1B227B #441B7B
triadic
#1B227B #7B1B22 #227B1B
tetradic
#1B227B #7B1B52 #7B741B #1B7B44
square
#1B227B #7B1B52 #7B741B #1B7B44
split-complementary
#1B227B #7B441B #527B1B
monochromatic
#060719 #101449 #1B227B #2630AD #3C47D4
Accessibility & contrast
On white
13.45
#1B227B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#1B227B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B227B
13.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B227B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B227B | 1.00 | 13.45 | 1.56 | 13.45 |
| #FFFFFF | 13.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003B4B
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #1b227b; /* rgb */ color: rgb(27, 34, 123); /* oklch */ color: oklch(31.6% 0.148 271.1);
Tailwind
colors: {
custom: {
50: '#695da2',
500: '#1b227b',
950: '#000000',
},
}SCSS
$custom: #1b227b; $custom-light: #695da2; $custom-dark: #000000;
JSON
{
"hex": "#1b227b",
"rgb": {
"r": 27,
"g": 34,
"b": 123
},
"hsl": {
"h": 235.625,
"s": 64,
"l": 29.412
},
"oklch": {
"l": 0.31635,
"c": 0.14777,
"h": 271.1
},
"luminance": 0.02807
}Semantic roles & 50–950 ramp
primary
#1B227B
secondary
#AFA743
accent
#DB41E7
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F