#1F2D78#1F2D78
#1F2D78 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.129 H 269.9°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2D78 |
|---|---|
| RGB | rgb(31, 45, 120) |
| HSL | hsl(231, 59%, 30%) |
| HSV | hsv(231, 74%, 47%) |
| CMYK | cmyk(74.2%, 62.5%, 0%, 52.9%) |
| CIE-LAB | lab(22.03, 22.07, -44.58) |
| CIE-LCH | lch(22.03, 49.74, 296.34°) |
| OKLab | oklab(33.64% -0.0002 -0.1286) |
| OKLCH | oklch(33.64% 0.129 269.9) |
| XYZ | xyz(4.8925, 3.5236, 18.1880) |
| Luminance | 0.0352 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.90
Marine
#042E60
ΔE00 5.97
Darkslateblue
#483D8B
ΔE00 7.44
Marine Blue
#01386A
ΔE00 7.53
Sapphire (survey)
#2138AB
ΔE00 7.85
Royal
#0C1793
ΔE00 7.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2D78 #786A1F
analogous
#1F5A78 #1F2D78 #3E1F78
triadic
#1F2D78 #781F2D #2D781F
tetradic
#1F2D78 #781F5A #786A1F #1F783E
square
#1F2D78 #781F5A #786A1F #1F783E
split-complementary
#1F2D78 #783E1F #5A781F
monochromatic
#060918 #121B47 #1F2D78 #2C3FA9 #4359CE
Accessibility & contrast
On white
12.32
#1F2D78 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#1F2D78 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2D78
12.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2D78 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2D78 | 1.00 | 12.32 | 1.70 | 12.32 |
| #FFFFFF | 12.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00397A
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #1f2d78; /* rgb */ color: rgb(31, 45, 120); /* oklch */ color: oklch(33.6% 0.129 269.9);
Tailwind
colors: {
custom: {
50: '#6865a0',
500: '#1f2d78',
950: '#000000',
},
}SCSS
$custom: #1f2d78; $custom-light: #6865a0; $custom-dark: #000000;
JSON
{
"hex": "#1f2d78",
"rgb": {
"r": 31,
"g": 45,
"b": 120
},
"hsl": {
"h": 230.562,
"s": 58.94,
"l": 29.608
},
"oklch": {
"l": 0.33641,
"c": 0.12863,
"h": 269.9
},
"luminance": 0.03524
}Semantic roles & 50–950 ramp
primary
#1F2D78
secondary
#AB9C47
accent
#CA46E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050F
muted
#7A7A7E