#1B1F74#1B1F74
#1B1F74 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.4% C 0.142 H 272.2°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).
Color values
| HEX | #1B1F74 |
|---|---|
| RGB | rgb(27, 31, 116) |
| HSL | hsl(237, 62%, 28%) |
| HSV | hsv(237, 77%, 45%) |
| CMYK | cmyk(76.7%, 73.3%, 0%, 54.5%) |
| CIE-LAB | lab(17.80, 29.58, -48.96) |
| CIE-LCH | lch(17.80, 57.20, 301.14°) |
| OKLab | oklab(30.37% 0.0055 -0.1416) |
| OKLCH | oklch(30.37% 0.142 272.2) |
| XYZ | xyz(4.0933, 2.4735, 16.7813) |
| Luminance | 0.0247 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.64
Royal
#0C1793
ΔE00 5.33
Dark Royal Blue
#02066F
ΔE00 5.67
Darkblue (survey)
#030764
ΔE00 5.87
Deep Blue
#040273
ΔE00 6.31
Navy
#000080
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B1F74 #74701B
analogous
#1B4B74 #1B1F74 #431B74
triadic
#1B1F74 #741B1F #1F741B
tetradic
#1B1F74 #741B4B #74701B #1B7443
square
#1B1F74 #741B4B #74701B #1B7443
split-complementary
#1B1F74 #74431B #4B741B
monochromatic
#060719 #0F1242 #1B1F74 #272CA6 #393FD1
Accessibility & contrast
On white
14.05
#1B1F74 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#1B1F74 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B1F74
14.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B1F74 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B1F74 | 1.00 | 14.05 | 1.49 | 14.05 |
| #FFFFFF | 14.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #1b1f74; /* rgb */ color: rgb(27, 31, 116); /* oklch */ color: oklch(30.4% 0.142 272.2);
Tailwind
colors: {
custom: {
50: '#675b9d',
500: '#1b1f74',
950: '#000000',
},
}SCSS
$custom: #1b1f74; $custom-light: #675b9d; $custom-dark: #000000;
JSON
{
"hex": "#1b1f74",
"rgb": {
"r": 27,
"g": 31,
"b": 116
},
"hsl": {
"h": 237.303,
"s": 62.238,
"l": 28.039
},
"oklch": {
"l": 0.30365,
"c": 0.14174,
"h": 272.2
},
"luminance": 0.02474
}Semantic roles & 50–950 ramp
primary
#1B1F74
secondary
#A9A442
accent
#DE42E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E