#1F2D7A#1F2D7A
#1F2D7A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.132 H 269.9°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2D7A |
|---|---|
| RGB | rgb(31, 45, 122) |
| HSL | hsl(231, 59%, 30%) |
| HSV | hsv(231, 75%, 48%) |
| CMYK | cmyk(74.6%, 63.1%, 0%, 52.2%) |
| CIE-LAB | lab(22.21, 22.86, -45.56) |
| CIE-LCH | lch(22.21, 50.98, 296.64°) |
| OKLab | oklab(33.83% -0.0002 -0.1315) |
| OKLCH | oklch(33.83% 0.132 269.9) |
| XYZ | xyz(5.0151, 3.5727, 18.8339) |
| Luminance | 0.0357 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.85
Marine
#042E60
ΔE00 6.22
Darkslateblue
#483D8B
ΔE00 7.34
Sapphire (survey)
#2138AB
ΔE00 7.55
Royal
#0C1793
ΔE00 7.59
Marine Blue
#01386A
ΔE00 7.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2D7A #7A6C1F
analogous
#1F5B7A #1F2D7A #3E1F7A
triadic
#1F2D7A #7A1F2D #2D7A1F
tetradic
#1F2D7A #7A1F5B #7A6C1F #1F7A3E
square
#1F2D7A #7A1F5B #7A6C1F #1F7A3E
split-complementary
#1F2D7A #7A3E1F #5B7A1F
monochromatic
#060918 #131B49 #1F2D7A #2B3FAB #4459CF
Accessibility & contrast
On white
12.25
#1F2D7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#1F2D7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2D7A
12.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2D7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2D7A | 1.00 | 12.25 | 1.71 | 12.25 |
| #FFFFFF | 12.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #1f2d7a; /* rgb */ color: rgb(31, 45, 122); /* oklch */ color: oklch(33.8% 0.132 269.9);
Tailwind
colors: {
custom: {
50: '#6965a1',
500: '#1f2d7a',
950: '#000000',
},
}SCSS
$custom: #1f2d7a; $custom-light: #6965a1; $custom-dark: #000000;
JSON
{
"hex": "#1f2d7a",
"rgb": {
"r": 31,
"g": 45,
"b": 122
},
"hsl": {
"h": 230.769,
"s": 59.477,
"l": 30
},
"oklch": {
"l": 0.33826,
"c": 0.13153,
"h": 269.9
},
"luminance": 0.03573
}Semantic roles & 50–950 ramp
primary
#1F2D7A
secondary
#AD9E47
accent
#CA45E3
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07050F
muted
#7A7A7F