#1F317F#1F317F
#1F317F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.133 H 268.6°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).
Color values
| HEX | #1F317F |
|---|---|
| RGB | rgb(31, 49, 127) |
| HSL | hsl(229, 61%, 31%) |
| HSV | hsv(229, 76%, 50%) |
| CMYK | cmyk(75.6%, 61.4%, 0%, 50.2%) |
| CIE-LAB | lab(23.74, 22.03, -46.23) |
| CIE-LCH | lch(23.74, 51.21, 295.48°) |
| OKLab | oklab(35.1% -0.0033 -0.1334) |
| OKLCH | oklch(35.1% 0.133 268.6) |
| XYZ | xyz(5.4928, 4.0197, 20.5609) |
| Luminance | 0.0402 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 6.18
Sapphire (survey)
#2138AB
ΔE00 6.62
Darkslateblue
#483D8B
ΔE00 6.91
Marine Blue
#01386A
ΔE00 6.96
Midnight Blue
#191970
ΔE00 7.12
Blueberry
#464196
ΔE00 7.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F317F #7F6D1F
analogous
#1F617F #1F317F #3D1F7F
triadic
#1F317F #7F1F31 #317F1F
tetradic
#1F317F #7F1F61 #7F6D1F #1F7F3D
square
#1F317F #7F1F61 #7F6D1F #1F7F3D
split-complementary
#1F317F #7F3D1F #617F1F
monochromatic
#070B1D #131E4E #1F317F #2B44B0 #4661D2
Accessibility & contrast
On white
11.64
#1F317F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#1F317F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F317F
11.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F317F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F317F | 1.00 | 11.64 | 1.80 | 11.64 |
| #FFFFFF | 11.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #1f317f; /* rgb */ color: rgb(31, 49, 127); /* oklch */ color: oklch(35.1% 0.133 268.6);
Tailwind
colors: {
custom: {
50: '#6a68a5',
500: '#1f317f',
950: '#000000',
},
}SCSS
$custom: #1f317f; $custom-light: #6a68a5; $custom-dark: #000000;
JSON
{
"hex": "#1f317f",
"rgb": {
"r": 31,
"g": 49,
"b": 127
},
"hsl": {
"h": 228.75,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.35099,
"c": 0.13347,
"h": 268.6
},
"luminance": 0.0402
}Semantic roles & 50–950 ramp
primary
#1F317F
secondary
#B29E48
accent
#C644E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F