#1F186C#1F186C
#1F186C is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.138 H 276.9°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).
Color values
| HEX | #1F186C |
|---|---|
| RGB | rgb(31, 24, 108) |
| HSL | hsl(245, 64%, 26%) |
| HSV | hsv(245, 78%, 42%) |
| CMYK | cmyk(71.3%, 77.8%, 0%, 57.6%) |
| CIE-LAB | lab(15.63, 31.55, -47.33) |
| CIE-LCH | lch(15.63, 56.88, 303.69°) |
| OKLab | oklab(28.63% 0.0166 -0.1368) |
| OKLCH | oklch(28.63% 0.138 276.9) |
| XYZ | xyz(3.5976, 2.0270, 14.3861) |
| Luminance | 0.0203 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.06
Darkblue (survey)
#030764
ΔE00 4.15
Dark Royal Blue
#02066F
ΔE00 4.26
Deep Blue
#040273
ΔE00 4.94
Dark Indigo
#1F0954
ΔE00 5.02
Dark Blue
#00035B
ΔE00 5.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F186C #656C18
analogous
#183B6C #1F186C #49186C
triadic
#1F186C #6C1F18 #186C1F
tetradic
#1F186C #6C183B #656C18 #186C49
square
#1F186C #6C183B #656C18 #186C49
split-complementary
#1F186C #6C4918 #3B6C18
monochromatic
#070619 #110D3A #1F186C #2D239E #3C2ED0
Accessibility & contrast
On white
14.94
#1F186C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.41
#1F186C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F186C
14.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F186C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F186C | 1.00 | 14.94 | 1.41 | 14.94 |
| #FFFFFF | 14.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00236A
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #1f186c; /* rgb */ color: rgb(31, 24, 108); /* oklch */ color: oklch(28.6% 0.138 276.9);
Tailwind
colors: {
custom: {
50: '#675697',
500: '#1f186c',
950: '#000000',
},
}SCSS
$custom: #1f186c; $custom-light: #675697; $custom-dark: #000000;
JSON
{
"hex": "#1f186c",
"rgb": {
"r": 31,
"g": 24,
"b": 108
},
"hsl": {
"h": 245,
"s": 63.636,
"l": 25.882
},
"oklch": {
"l": 0.2863,
"c": 0.13776,
"h": 276.9
},
"luminance": 0.02027
}Semantic roles & 50–950 ramp
primary
#1F186C
secondary
#99A23E
accent
#E741D9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E