#1F158F#1F158F
#1F158F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.184 H 272.7°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).
Color values
| HEX | #1F158F |
|---|---|
| RGB | rgb(31, 21, 143) |
| HSL | hsl(245, 74%, 32%) |
| HSV | hsv(245, 85%, 56%) |
| CMYK | cmyk(78.3%, 85.3%, 0%, 43.9%) |
| CIE-LAB | lab(19.27, 44.72, -63.62) |
| CIE-LCH | lch(19.27, 77.76, 305.10°) |
| OKLab | oklab(32.39% 0.0087 -0.184) |
| OKLCH | oklch(32.39% 0.184 272.7) |
| XYZ | xyz(5.7895, 2.8102, 26.2186) |
| Luminance | 0.0281 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.32
Cobalt Blue
#030AA7
ΔE00 3.43
Darkblue
#00008B
ΔE00 3.46
Royal Blue (survey)
#0504AA
ΔE00 3.93
Navy
#000080
ΔE00 4.30
Indigo (survey)
#380282
ΔE00 4.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F158F #858F15
analogous
#15488F #1F158F #5C158F
triadic
#1F158F #8F1F15 #158F1F
tetradic
#1F158F #8F1548 #858F15 #158F5C
square
#1F158F #8F1548 #858F15 #158F5C
split-complementary
#1F158F #8F5C15 #488F15
monochromatic
#080524 #130D5A #1F158F #2B1DC4 #4A3CE2
Accessibility & contrast
On white
13.44
#1F158F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#1F158F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F158F
13.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F158F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F158F | 1.00 | 13.44 | 1.56 | 13.44 |
| #FFFFFF | 13.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #1f158f; /* rgb */ color: rgb(31, 21, 143); /* oklch */ color: oklch(32.4% 0.184 272.7);
Tailwind
colors: {
custom: {
50: '#7057b1',
500: '#1f158f',
950: '#000000',
},
}SCSS
$custom: #1f158f; $custom-light: #7057b1; $custom-dark: #000000;
JSON
{
"hex": "#1f158f",
"rgb": {
"r": 31,
"g": 21,
"b": 143
},
"hsl": {
"h": 244.918,
"s": 74.39,
"l": 32.157
},
"oklch": {
"l": 0.32391,
"c": 0.18423,
"h": 272.7
},
"luminance": 0.02811
}Semantic roles & 50–950 ramp
primary
#1F158F
secondary
#B7C23E
accent
#F137E2
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880