#1F2A88#1F2A88
#1F2A88 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.155 H 270.4°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2A88 |
|---|---|
| RGB | rgb(31, 42, 136) |
| HSL | hsl(234, 63%, 33%) |
| HSV | hsv(234, 77%, 53%) |
| CMYK | cmyk(77.2%, 69.1%, 0%, 46.7%) |
| CIE-LAB | lab(22.74, 30.28, -53.52) |
| CIE-LCH | lch(22.74, 61.49, 299.50°) |
| OKLab | oklab(34.62% 0.0011 -0.1548) |
| OKLCH | oklch(34.62% 0.155 270.4) |
| XYZ | xyz(5.8355, 3.7242, 23.6991) |
| Luminance | 0.0372 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 5.17
Midnight Blue
#191970
ΔE00 5.40
Sapphire (survey)
#2138AB
ΔE00 6.00
Darkslateblue
#483D8B
ΔE00 7.38
Blueberry
#464196
ΔE00 7.69
Cobalt Blue
#030AA7
ΔE00 7.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2A88 #887D1F
analogous
#1F5F88 #1F2A88 #481F88
triadic
#1F2A88 #881F2A #2A881F
tetradic
#1F2A88 #881F5F #887D1F #1F8848
square
#1F2A88 #881F5F #887D1F #1F8848
split-complementary
#1F2A88 #88481F #5F881F
monochromatic
#080B24 #141B56 #1F2A88 #2A39BA #4B5AD6
Accessibility & contrast
On white
12.03
#1F2A88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#1F2A88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2A88
12.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2A88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2A88 | 1.00 | 12.03 | 1.75 | 12.03 |
| #FFFFFF | 12.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #1f2a88; /* rgb */ color: rgb(31, 42, 136); /* oklch */ color: oklch(34.6% 0.155 270.4);
Tailwind
colors: {
custom: {
50: '#6d63ac',
500: '#1f2a88',
950: '#000000',
},
}SCSS
$custom: #1f2a88; $custom-light: #6d63ac; $custom-dark: #000000;
JSON
{
"hex": "#1f2a88",
"rgb": {
"r": 31,
"g": 42,
"b": 136
},
"hsl": {
"h": 233.714,
"s": 62.874,
"l": 32.745
},
"oklch": {
"l": 0.3462,
"c": 0.15484,
"h": 270.4
},
"luminance": 0.03725
}Semantic roles & 50–950 ramp
primary
#1F2A88
secondary
#B9AD4A
accent
#D542E6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F