#1F2D88#1F2D88
#1F2D88 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.151 H 269.7°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2D88 |
|---|---|
| RGB | rgb(31, 45, 136) |
| HSL | hsl(232, 63%, 33%) |
| HSV | hsv(232, 77%, 53%) |
| CMYK | cmyk(77.2%, 66.9%, 0%, 46.7%) |
| CIE-LAB | lab(23.49, 28.28, -52.28) |
| CIE-LCH | lch(23.49, 59.44, 298.40°) |
| OKLab | oklab(35.17% -0.0007 -0.1512) |
| OKLCH | oklch(35.17% 0.151 269.7) |
| XYZ | xyz(5.9459, 3.9450, 23.7359) |
| Luminance | 0.0395 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.60
Royal
#0C1793
ΔE00 6.06
Midnight Blue
#191970
ΔE00 6.13
Darkslateblue
#483D8B
ΔE00 6.99
Blueberry
#464196
ΔE00 7.17
Marine
#042E60
ΔE00 8.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2D88 #887A1F
analogous
#1F6188 #1F2D88 #451F88
triadic
#1F2D88 #881F2D #2D881F
tetradic
#1F2D88 #881F61 #887A1F #1F8845
square
#1F2D88 #881F61 #887A1F #1F8845
split-complementary
#1F2D88 #88451F #61881F
monochromatic
#080C24 #141D56 #1F2D88 #2A3DBA #4B5ED6
Accessibility & contrast
On white
11.74
#1F2D88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#1F2D88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2D88
11.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2D88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2D88 | 1.00 | 11.74 | 1.79 | 11.74 |
| #FFFFFF | 11.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D8B
Deuteranopia (green-blind)
#003386
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #1f2d88; /* rgb */ color: rgb(31, 45, 136); /* oklch */ color: oklch(35.2% 0.151 269.7);
Tailwind
colors: {
custom: {
50: '#6c66ac',
500: '#1f2d88',
950: '#000000',
},
}SCSS
$custom: #1f2d88; $custom-light: #6c66ac; $custom-dark: #000000;
JSON
{
"hex": "#1f2d88",
"rgb": {
"r": 31,
"g": 45,
"b": 136
},
"hsl": {
"h": 232,
"s": 62.874,
"l": 32.745
},
"oklch": {
"l": 0.35168,
"c": 0.15122,
"h": 269.7
},
"luminance": 0.03946
}Semantic roles & 50–950 ramp
primary
#1F2D88
secondary
#B9AA4A
accent
#D042E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F