#1F2A79#1F2A79
#1F2A79 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.134 H 270.9°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2A79 |
|---|---|
| RGB | rgb(31, 42, 121) |
| HSL | hsl(233, 59%, 30%) |
| HSV | hsv(233, 74%, 47%) |
| CMYK | cmyk(74.4%, 65.3%, 0%, 52.5%) |
| CIE-LAB | lab(21.31, 24.55, -46.39) |
| CIE-LCH | lch(21.31, 52.49, 297.89°) |
| OKLab | oklab(33.14% 0.0022 -0.134) |
| OKLCH | oklch(33.14% 0.134 270.9) |
| XYZ | xyz(4.8431, 3.3272, 18.4724) |
| Luminance | 0.0333 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.87
Marine
#042E60
ΔE00 6.77
Royal
#0C1793
ΔE00 6.88
Darkslateblue
#483D8B
ΔE00 7.66
Sapphire (survey)
#2138AB
ΔE00 7.93
Blueberry
#464196
ΔE00 8.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2A79 #796E1F
analogous
#1F5779 #1F2A79 #411F79
triadic
#1F2A79 #791F2A #2A791F
tetradic
#1F2A79 #791F57 #796E1F #1F7941
square
#1F2A79 #791F57 #796E1F #1F7941
split-complementary
#1F2A79 #79411F #57791F
monochromatic
#060818 #131948 #1F2A79 #2B3BAA #4354CF
Accessibility & contrast
On white
12.61
#1F2A79 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#1F2A79 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2A79
12.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2A79 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2A79 | 1.00 | 12.61 | 1.67 | 12.61 |
| #FFFFFF | 12.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #1f2a79; /* rgb */ color: rgb(31, 42, 121); /* oklch */ color: oklch(33.1% 0.134 270.9);
Tailwind
colors: {
custom: {
50: '#6963a0',
500: '#1f2a79',
950: '#000000',
},
}SCSS
$custom: #1f2a79; $custom-light: #6963a0; $custom-dark: #000000;
JSON
{
"hex": "#1f2a79",
"rgb": {
"r": 31,
"g": 42,
"b": 121
},
"hsl": {
"h": 232.667,
"s": 59.211,
"l": 29.804
},
"oklch": {
"l": 0.33137,
"c": 0.134,
"h": 270.9
},
"luminance": 0.03328
}Semantic roles & 50–950 ramp
primary
#1F2A79
secondary
#ACA047
accent
#CF45E2
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F