#1F236D#1F236D
#1F236D is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.126 H 273.8°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).
Color values
| HEX | #1F236D |
|---|---|
| RGB | rgb(31, 35, 109) |
| HSL | hsl(237, 56%, 27%) |
| HSV | hsv(237, 72%, 43%) |
| CMYK | cmyk(71.6%, 67.9%, 0%, 57.3%) |
| CIE-LAB | lab(18.35, 24.76, -43.51) |
| CIE-LCH | lch(18.35, 50.06, 299.64°) |
| OKLab | oklab(30.62% 0.0084 -0.1256) |
| OKLCH | oklch(30.62% 0.126 273.8) |
| XYZ | xyz(3.9255, 2.5971, 14.7595) |
| Luminance | 0.0260 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.14
Darkblue (survey)
#030764
ΔE00 7.04
Royal
#0C1793
ΔE00 7.17
Dark Royal Blue
#02066F
ΔE00 7.23
Marine
#042E60
ΔE00 7.50
Dark Indigo
#1F0954
ΔE00 7.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F236D #6D691F
analogous
#1F4A6D #1F236D #421F6D
triadic
#1F236D #6D1F23 #236D1F
tetradic
#1F236D #6D1F4A #6D691F #1F6D42
square
#1F236D #6D1F4A #6D691F #1F6D42
split-complementary
#1F236D #6D421F #4A6D1F
monochromatic
#070818 #11143D #1F236D #2D329D #3E45C8
Accessibility & contrast
On white
13.82
#1F236D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#1F236D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F236D
13.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F236D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F236D | 1.00 | 13.82 | 1.52 | 13.82 |
| #FFFFFF | 13.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#00296C
Tritanopia (blue-blind)
#003644
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #1f236d; /* rgb */ color: rgb(31, 35, 109); /* oklch */ color: oklch(30.6% 0.126 273.8);
Tailwind
colors: {
custom: {
50: '#665e98',
500: '#1f236d',
950: '#000000',
},
}SCSS
$custom: #1f236d; $custom-light: #665e98; $custom-dark: #000000;
JSON
{
"hex": "#1f236d",
"rgb": {
"r": 31,
"g": 35,
"b": 109
},
"hsl": {
"h": 236.923,
"s": 55.714,
"l": 27.451
},
"oklch": {
"l": 0.30622,
"c": 0.12587,
"h": 273.8
},
"luminance": 0.02597
}Semantic roles & 50–950 ramp
primary
#1F236D
secondary
#A19C47
accent
#D749DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E