#1F156F#1F156F
#1F156F is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.5% C 0.145 H 277.0°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).
Color values
| HEX | #1F156F |
|---|---|
| RGB | rgb(31, 21, 111) |
| HSL | hsl(247, 68%, 26%) |
| HSV | hsv(247, 81%, 44%) |
| CMYK | cmyk(72.1%, 81.1%, 0%, 56.5%) |
| CIE-LAB | lab(15.36, 34.33, -49.74) |
| CIE-LCH | lch(15.36, 60.43, 304.61°) |
| OKLab | oklab(28.54% 0.0176 -0.1437) |
| OKLCH | oklch(28.54% 0.145 277) |
| XYZ | xyz(3.7015, 1.9750, 15.2220) |
| Luminance | 0.0198 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.40
Dark Royal Blue
#02066F
ΔE00 3.48
Darkblue (survey)
#030764
ΔE00 3.68
Deep Blue
#040273
ΔE00 4.05
Navy
#000080
ΔE00 4.88
Dark Indigo
#1F0954
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F156F #656F15
analogous
#15386F #1F156F #4C156F
triadic
#1F156F #6F1F15 #156F1F
tetradic
#1F156F #6F1538 #656F15 #156F4C
square
#1F156F #6F1538 #656F15 #156F4C
split-complementary
#1F156F #6F4C15 #386F15
monochromatic
#07051A #110B3C #1F156F #2D1FA2 #3C28D6
Accessibility & contrast
On white
15.05
#1F156F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.40
#1F156F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F156F
15.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F156F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F156F | 1.00 | 15.05 | 1.40 | 15.05 |
| #FFFFFF | 15.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00236D
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#262626
Design tokens & code
CSS
--color: #1f156f; /* rgb */ color: rgb(31, 21, 111); /* oklch */ color: oklch(28.5% 0.145 277.0);
Tailwind
colors: {
custom: {
50: '#685599',
500: '#1f156f',
950: '#000000',
},
}SCSS
$custom: #1f156f; $custom-light: #685599; $custom-dark: #000000;
JSON
{
"hex": "#1f156f",
"rgb": {
"r": 31,
"g": 21,
"b": 111
},
"hsl": {
"h": 246.667,
"s": 68.182,
"l": 25.882
},
"oklch": {
"l": 0.28539,
"c": 0.14481,
"h": 277
},
"luminance": 0.01975
}Semantic roles & 50–950 ramp
primary
#1F156F
secondary
#99A53A
accent
#EB3DD8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E