#1F2A7C#1F2A7C
#1F2A7C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.138 H 270.8°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2A7C |
|---|---|
| RGB | rgb(31, 42, 124) |
| HSL | hsl(233, 60%, 30%) |
| HSV | hsv(233, 75%, 49%) |
| CMYK | cmyk(75%, 66.1%, 0%, 51.4%) |
| CIE-LAB | lab(21.59, 25.71, -47.84) |
| CIE-LCH | lch(21.59, 54.31, 298.25°) |
| OKLab | oklab(33.43% 0.002 -0.1382) |
| OKLCH | oklch(33.43% 0.138 270.8) |
| XYZ | xyz(5.0299, 3.4020, 19.4564) |
| Luminance | 0.0340 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.86
Royal
#0C1793
ΔE00 6.48
Marine
#042E60
ΔE00 7.12
Sapphire (survey)
#2138AB
ΔE00 7.51
Darkslateblue
#483D8B
ΔE00 7.55
Blueberry
#464196
ΔE00 8.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2A7C #7C711F
analogous
#1F587C #1F2A7C #421F7C
triadic
#1F2A7C #7C1F2A #2A7C1F
tetradic
#1F2A7C #7C1F58 #7C711F #1F7C42
square
#1F2A7C #7C1F58 #7C711F #1F7C42
split-complementary
#1F2A7C #7C421F #587C1F
monochromatic
#07091A #13194B #1F2A7C #2B3BAD #4555D0
Accessibility & contrast
On white
12.50
#1F2A7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#1F2A7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2A7C
12.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2A7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2A7C | 1.00 | 12.50 | 1.68 | 12.50 |
| #FFFFFF | 12.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #1f2a7c; /* rgb */ color: rgb(31, 42, 124); /* oklch */ color: oklch(33.4% 0.138 270.8);
Tailwind
colors: {
custom: {
50: '#6963a3',
500: '#1f2a7c',
950: '#000000',
},
}SCSS
$custom: #1f2a7c; $custom-light: #6963a3; $custom-dark: #000000;
JSON
{
"hex": "#1f2a7c",
"rgb": {
"r": 31,
"g": 42,
"b": 124
},
"hsl": {
"h": 232.903,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.33426,
"c": 0.13825,
"h": 270.8
},
"luminance": 0.03402
}Semantic roles & 50–950 ramp
primary
#1F2A7C
secondary
#AFA348
accent
#D045E3
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F