#1F307F#1F307F
#1F307F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.135 H 268.9°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).
Color values
| HEX | #1F307F |
|---|---|
| RGB | rgb(31, 48, 127) |
| HSL | hsl(229, 61%, 31%) |
| HSV | hsv(229, 76%, 50%) |
| CMYK | cmyk(75.6%, 62.2%, 0%, 50.2%) |
| CIE-LAB | lab(23.46, 22.73, -46.68) |
| CIE-LCH | lch(23.46, 51.92, 295.96°) |
| OKLab | oklab(34.89% -0.0026 -0.1348) |
| OKLCH | oklch(34.89% 0.135 268.9) |
| XYZ | xyz(5.4515, 3.9369, 20.5472) |
| Luminance | 0.0394 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 6.33
Sapphire (survey)
#2138AB
ΔE00 6.65
Midnight Blue
#191970
ΔE00 6.79
Darkslateblue
#483D8B
ΔE00 6.94
Marine Blue
#01386A
ΔE00 7.23
Blueberry
#464196
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F307F #7F6E1F
analogous
#1F607F #1F307F #3E1F7F
triadic
#1F307F #7F1F30 #307F1F
tetradic
#1F307F #7F1F60 #7F6E1F #1F7F3E
square
#1F307F #7F1F60 #7F6E1F #1F7F3E
split-complementary
#1F307F #7F3E1F #607F1F
monochromatic
#070B1D #131D4E #1F307F #2B43B0 #465FD2
Accessibility & contrast
On white
11.75
#1F307F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#1F307F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F307F
11.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F307F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F307F | 1.00 | 11.75 | 1.79 | 11.75 |
| #FFFFFF | 11.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #1f307f; /* rgb */ color: rgb(31, 48, 127); /* oklch */ color: oklch(34.9% 0.135 268.9);
Tailwind
colors: {
custom: {
50: '#6a68a5',
500: '#1f307f',
950: '#000000',
},
}SCSS
$custom: #1f307f; $custom-light: #6a68a5; $custom-dark: #000000;
JSON
{
"hex": "#1f307f",
"rgb": {
"r": 31,
"g": 48,
"b": 127
},
"hsl": {
"h": 229.375,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.34895,
"c": 0.13478,
"h": 268.9
},
"luminance": 0.03938
}Semantic roles & 50–950 ramp
primary
#1F307F
secondary
#B29F48
accent
#C844E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F