#1F337A#1F337A
#1F337A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.1% C 0.124 H 267.6°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).
Color values
| HEX | #1F337A |
|---|---|
| RGB | rgb(31, 51, 122) |
| HSL | hsl(227, 59%, 30%) |
| HSV | hsv(227, 75%, 48%) |
| CMYK | cmyk(74.6%, 58.2%, 0%, 52.2%) |
| CIE-LAB | lab(23.88, 18.65, -42.84) |
| CIE-LCH | lch(23.88, 46.72, 293.52°) |
| OKLab | oklab(35.08% -0.0051 -0.1234) |
| OKLCH | oklch(35.08% 0.124 267.6) |
| XYZ | xyz(5.2605, 4.0636, 18.9157) |
| Luminance | 0.0406 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.25
Marine Blue
#01386A
ΔE00 5.97
Darkish Blue
#014182
ΔE00 6.56
Darkslateblue
#483D8B
ΔE00 7.22
Cobalt (survey)
#1E488F
ΔE00 7.40
Sapphire (survey)
#2138AB
ΔE00 7.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F337A #7A661F
analogous
#1F617A #1F337A #381F7A
triadic
#1F337A #7A1F33 #337A1F
tetradic
#1F337A #7A1F61 #7A661F #1F7A38
square
#1F337A #7A1F61 #7A661F #1F7A38
split-complementary
#1F337A #7A381F #617A1F
monochromatic
#060A18 #131F49 #1F337A #2B47AB #4463CF
Accessibility & contrast
On white
11.58
#1F337A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#1F337A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F337A
11.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F337A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F337A | 1.00 | 11.58 | 1.81 | 11.58 |
| #FFFFFF | 11.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #1f337a; /* rgb */ color: rgb(31, 51, 122); /* oklch */ color: oklch(35.1% 0.124 267.6);
Tailwind
colors: {
custom: {
50: '#686aa1',
500: '#1f337a',
950: '#000000',
},
}SCSS
$custom: #1f337a; $custom-light: #686aa1; $custom-dark: #000000;
JSON
{
"hex": "#1f337a",
"rgb": {
"r": 31,
"g": 51,
"b": 122
},
"hsl": {
"h": 226.813,
"s": 59.477,
"l": 30
},
"oklch": {
"l": 0.35076,
"c": 0.12354,
"h": 267.6
},
"luminance": 0.04064
}Semantic roles & 50–950 ramp
primary
#1F337A
secondary
#AD9747
accent
#C045E3
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F