#1F156C#1F156C
#1F156C is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.141 H 277.5°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).
Color values
| HEX | #1F156C |
|---|---|
| RGB | rgb(31, 21, 108) |
| HSL | hsl(247, 67%, 25%) |
| HSV | hsv(247, 81%, 42%) |
| CMYK | cmyk(71.3%, 80.6%, 0%, 57.6%) |
| CIE-LAB | lab(15.01, 33.31, -48.36) |
| CIE-LCH | lch(15.01, 58.72, 304.56°) |
| OKLab | oklab(28.19% 0.0184 -0.1397) |
| OKLCH | oklch(28.19% 0.141 277.5) |
| XYZ | xyz(3.5391, 1.9100, 14.3666) |
| Luminance | 0.0191 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.49
Darkblue (survey)
#030764
ΔE00 3.58
Dark Royal Blue
#02066F
ΔE00 3.62
Deep Blue
#040273
ΔE00 4.27
Dark Indigo
#1F0954
ΔE00 4.64
Dark Blue
#00035B
ΔE00 4.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F156C #626C15
analogous
#15366C #1F156C #4B156C
triadic
#1F156C #6C1F15 #156C1F
tetradic
#1F156C #6C1536 #626C15 #156C4B
square
#1F156C #6C1536 #626C15 #156C4B
split-complementary
#1F156C #6C4B15 #366C15
monochromatic
#07051A #100B39 #1F156C #2E1F9F #3C29D2
Accessibility & contrast
On white
15.20
#1F156C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.38
#1F156C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F156C
15.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F156C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F156C | 1.00 | 15.20 | 1.38 | 15.20 |
| #FFFFFF | 15.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00296E
Deuteranopia (green-blind)
#00226A
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#262626
Design tokens & code
CSS
--color: #1f156c; /* rgb */ color: rgb(31, 21, 108); /* oklch */ color: oklch(28.2% 0.141 277.5);
Tailwind
colors: {
custom: {
50: '#685497',
500: '#1f156c',
950: '#000000',
},
}SCSS
$custom: #1f156c; $custom-light: #685497; $custom-dark: #000000;
JSON
{
"hex": "#1f156c",
"rgb": {
"r": 31,
"g": 21,
"b": 108
},
"hsl": {
"h": 246.897,
"s": 67.442,
"l": 25.294
},
"oklch": {
"l": 0.28192,
"c": 0.14092,
"h": 277.5
},
"luminance": 0.0191
}Semantic roles & 50–950 ramp
primary
#1F156C
secondary
#97A33A
accent
#EA3DD6
background
#F6F5F9
surface
#EBE8F2
border
#C6C4CC
text
#07030E
muted
#7A787E