#1F2B8A#1F2B8A
#1F2B8A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.156 H 270.1°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2B8A |
|---|---|
| RGB | rgb(31, 43, 138) |
| HSL | hsl(233, 63%, 33%) |
| HSV | hsv(233, 78%, 54%) |
| CMYK | cmyk(77.5%, 68.8%, 0%, 45.9%) |
| CIE-LAB | lab(23.18, 30.37, -54.04) |
| CIE-LCH | lch(23.18, 61.99, 299.33°) |
| OKLab | oklab(35% 0.0004 -0.1564) |
| OKLCH | oklch(35% 0.156 270.1) |
| XYZ | xyz(6.0148, 3.8534, 24.4666) |
| Luminance | 0.0385 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 5.31
Sapphire (survey)
#2138AB
ΔE00 5.63
Midnight Blue
#191970
ΔE00 5.78
Darkslateblue
#483D8B
ΔE00 7.25
Blueberry
#464196
ΔE00 7.45
Cobalt Blue
#030AA7
ΔE00 7.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2B8A #8A7E1F
analogous
#1F608A #1F2B8A #481F8A
triadic
#1F2B8A #8A1F2B #2B8A1F
tetradic
#1F2B8A #8A1F60 #8A7E1F #1F8A48
square
#1F2B8A #8A1F60 #8A7E1F #1F8A48
split-complementary
#1F2B8A #8A481F #608A1F
monochromatic
#090C26 #141B58 #1F2B8A #2A3BBC #4C5CD7
Accessibility & contrast
On white
11.86
#1F2B8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#1F2B8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2B8A
11.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2B8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2B8A | 1.00 | 11.86 | 1.77 | 11.86 |
| #FFFFFF | 11.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #1f2b8a; /* rgb */ color: rgb(31, 43, 138); /* oklch */ color: oklch(35.0% 0.156 270.1);
Tailwind
colors: {
custom: {
50: '#6d64ad',
500: '#1f2b8a',
950: '#000000',
},
}SCSS
$custom: #1f2b8a; $custom-light: #6d64ad; $custom-dark: #000000;
JSON
{
"hex": "#1f2b8a",
"rgb": {
"r": 31,
"g": 43,
"b": 138
},
"hsl": {
"h": 233.271,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.35002,
"c": 0.15636,
"h": 270.1
},
"luminance": 0.03854
}Semantic roles & 50–950 ramp
primary
#1F2B8A
secondary
#BAAD4B
accent
#D441E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F