#1F307E#1F307E
#1F307E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.133 H 268.9°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).
Color values
| HEX | #1F307E |
|---|---|
| RGB | rgb(31, 48, 126) |
| HSL | hsl(229, 61%, 31%) |
| HSV | hsv(229, 75%, 49%) |
| CMYK | cmyk(75.4%, 61.9%, 0%, 50.6%) |
| CIE-LAB | lab(23.38, 22.34, -46.19) |
| CIE-LCH | lch(23.38, 51.31, 295.81°) |
| OKLab | oklab(34.8% -0.0026 -0.1333) |
| OKLCH | oklch(34.8% 0.133 268.9) |
| XYZ | xyz(5.3866, 3.9110, 20.2056) |
| Luminance | 0.0391 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 6.20
Midnight Blue
#191970
ΔE00 6.80
Sapphire (survey)
#2138AB
ΔE00 6.80
Darkslateblue
#483D8B
ΔE00 6.98
Marine Blue
#01386A
ΔE00 7.14
Blueberry
#464196
ΔE00 7.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F307E #7E6D1F
analogous
#1F5F7E #1F307E #3D1F7E
triadic
#1F307E #7E1F30 #307E1F
tetradic
#1F307E #7E1F5F #7E6D1F #1F7E3D
square
#1F307E #7E1F5F #7E6D1F #1F7E3D
split-complementary
#1F307E #7E3D1F #5F7E1F
monochromatic
#070B1C #131D4D #1F307E #2B43AF #465FD1
Accessibility & contrast
On white
11.78
#1F307E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#1F307E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F307E
11.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F307E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F307E | 1.00 | 11.78 | 1.78 | 11.78 |
| #FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #1f307e; /* rgb */ color: rgb(31, 48, 126); /* oklch */ color: oklch(34.8% 0.133 268.9);
Tailwind
colors: {
custom: {
50: '#6968a4',
500: '#1f307e',
950: '#000000',
},
}SCSS
$custom: #1f307e; $custom-light: #6968a4; $custom-dark: #000000;
JSON
{
"hex": "#1f307e",
"rgb": {
"r": 31,
"g": 48,
"b": 126
},
"hsl": {
"h": 229.263,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.34804,
"c": 0.13334,
"h": 268.9
},
"luminance": 0.03912
}Semantic roles & 50–950 ramp
primary
#1F307E
secondary
#B19E48
accent
#C744E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F