#1F2A7B#1F2A7B
#1F2A7B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.137 H 270.9°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2A7B |
|---|---|
| RGB | rgb(31, 42, 123) |
| HSL | hsl(233, 60%, 30%) |
| HSV | hsv(233, 75%, 48%) |
| CMYK | cmyk(74.8%, 65.9%, 0%, 51.8%) |
| CIE-LAB | lab(21.49, 25.32, -47.36) |
| CIE-LCH | lch(21.49, 53.71, 298.13°) |
| OKLab | oklab(33.33% 0.0021 -0.1368) |
| OKLCH | oklch(33.33% 0.137 270.9) |
| XYZ | xyz(4.9670, 3.3768, 19.1251) |
| Luminance | 0.0338 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.86
Royal
#0C1793
ΔE00 6.61
Marine
#042E60
ΔE00 7.00
Darkslateblue
#483D8B
ΔE00 7.58
Sapphire (survey)
#2138AB
ΔE00 7.65
Blueberry
#464196
ΔE00 8.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2A7B #7B701F
analogous
#1F587B #1F2A7B #421F7B
triadic
#1F2A7B #7B1F2A #2A7B1F
tetradic
#1F2A7B #7B1F58 #7B701F #1F7B42
square
#1F2A7B #7B1F58 #7B701F #1F7B42
split-complementary
#1F2A7B #7B421F #587B1F
monochromatic
#060919 #13194A #1F2A7B #2B3BAC #4455D0
Accessibility & contrast
On white
12.53
#1F2A7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#1F2A7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2A7B
12.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2A7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2A7B | 1.00 | 12.53 | 1.68 | 12.53 |
| #FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #1f2a7b; /* rgb */ color: rgb(31, 42, 123); /* oklch */ color: oklch(33.3% 0.137 270.9);
Tailwind
colors: {
custom: {
50: '#6963a2',
500: '#1f2a7b',
950: '#000000',
},
}SCSS
$custom: #1f2a7b; $custom-light: #6963a2; $custom-dark: #000000;
JSON
{
"hex": "#1f2a7b",
"rgb": {
"r": 31,
"g": 42,
"b": 123
},
"hsl": {
"h": 232.826,
"s": 59.74,
"l": 30.196
},
"oklch": {
"l": 0.33329,
"c": 0.13685,
"h": 270.9
},
"luminance": 0.03377
}Semantic roles & 50–950 ramp
primary
#1F2A7B
secondary
#AEA248
accent
#D045E3
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F