#1F236C#1F236C
#1F236C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.5% C 0.124 H 273.9°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).
Color values
| HEX | #1F236C |
|---|---|
| RGB | rgb(31, 35, 108) |
| HSL | hsl(237, 55%, 27%) |
| HSV | hsv(237, 71%, 42%) |
| CMYK | cmyk(71.3%, 67.6%, 0%, 57.6%) |
| CIE-LAB | lab(18.26, 24.38, -43.02) |
| CIE-LCH | lch(18.26, 49.44, 299.54°) |
| OKLab | oklab(30.52% 0.0085 -0.1241) |
| OKLCH | oklch(30.52% 0.124 273.9) |
| XYZ | xyz(3.8720, 2.5757, 14.4776) |
| Luminance | 0.0258 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.24
Darkblue (survey)
#030764
ΔE00 7.08
Dark Royal Blue
#02066F
ΔE00 7.31
Royal
#0C1793
ΔE00 7.35
Marine
#042E60
ΔE00 7.43
Dark Indigo
#1F0954
ΔE00 7.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F236C #6C681F
analogous
#1F4A6C #1F236C #421F6C
triadic
#1F236C #6C1F23 #236C1F
tetradic
#1F236C #6C1F4A #6C681F #1F6C42
square
#1F236C #6C1F4A #6C681F #1F6C42
split-complementary
#1F236C #6C421F #4A6C1F
monochromatic
#070818 #11143C #1F236C #2D329C #3E45C8
Accessibility & contrast
On white
13.86
#1F236C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#1F236C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F236C
13.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F236C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F236C | 1.00 | 13.86 | 1.52 | 13.86 |
| #FFFFFF | 13.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#00296B
Tritanopia (blue-blind)
#003644
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #1f236c; /* rgb */ color: rgb(31, 35, 108); /* oklch */ color: oklch(30.5% 0.124 273.9);
Tailwind
colors: {
custom: {
50: '#665e97',
500: '#1f236c',
950: '#000000',
},
}SCSS
$custom: #1f236c; $custom-light: #665e97; $custom-dark: #000000;
JSON
{
"hex": "#1f236c",
"rgb": {
"r": 31,
"g": 35,
"b": 108
},
"hsl": {
"h": 236.883,
"s": 55.396,
"l": 27.255
},
"oklch": {
"l": 0.30523,
"c": 0.12443,
"h": 273.9
},
"luminance": 0.02576
}Semantic roles & 50–950 ramp
primary
#1F236C
secondary
#A09B47
accent
#D749DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E