#1F2D8A#1F2D8A
#1F2D8A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.154 H 269.7°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2D8A |
|---|---|
| RGB | rgb(31, 45, 138) |
| HSL | hsl(232, 63%, 33%) |
| HSV | hsv(232, 78%, 54%) |
| CMYK | cmyk(77.5%, 67.4%, 0%, 45.9%) |
| CIE-LAB | lab(23.68, 29.04, -53.22) |
| CIE-LCH | lch(23.68, 60.63, 298.62°) |
| OKLab | oklab(35.37% -0.0008 -0.1539) |
| OKLCH | oklch(35.37% 0.154 269.7) |
| XYZ | xyz(6.0893, 4.0024, 24.4914) |
| Luminance | 0.0400 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.35
Royal
#0C1793
ΔE00 5.90
Midnight Blue
#191970
ΔE00 6.25
Darkslateblue
#483D8B
ΔE00 6.99
Blueberry
#464196
ΔE00 7.11
Marine
#042E60
ΔE00 8.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2D8A #8A7C1F
analogous
#1F628A #1F2D8A #471F8A
triadic
#1F2D8A #8A1F2D #2D8A1F
tetradic
#1F2D8A #8A1F62 #8A7C1F #1F8A47
square
#1F2D8A #8A1F62 #8A7C1F #1F8A47
split-complementary
#1F2D8A #8A471F #628A1F
monochromatic
#090C26 #141D58 #1F2D8A #2A3DBC #4C5FD7
Accessibility & contrast
On white
11.66
#1F2D8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#1F2D8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2D8A
11.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2D8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2D8A | 1.00 | 11.66 | 1.80 | 11.66 |
| #FFFFFF | 11.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #1f2d8a; /* rgb */ color: rgb(31, 45, 138); /* oklch */ color: oklch(35.4% 0.154 269.7);
Tailwind
colors: {
custom: {
50: '#6d66ad',
500: '#1f2d8a',
950: '#000000',
},
}SCSS
$custom: #1f2d8a; $custom-light: #6d66ad; $custom-dark: #000000;
JSON
{
"hex": "#1f2d8a",
"rgb": {
"r": 31,
"g": 45,
"b": 138
},
"hsl": {
"h": 232.15,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.35366,
"c": 0.15395,
"h": 269.7
},
"luminance": 0.04003
}Semantic roles & 50–950 ramp
primary
#1F2D8A
secondary
#BAAB4B
accent
#D141E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F