#1F1799#1F1799
#1F1799 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.8% C 0.195 H 271.6°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1799 |
|---|---|
| RGB | rgb(31, 23, 153) |
| HSL | hsl(244, 74%, 35%) |
| HSV | hsv(244, 85%, 60%) |
| CMYK | cmyk(79.7%, 85%, 0%, 40%) |
| CIE-LAB | lab(20.84, 46.92, -67.20) |
| CIE-LCH | lch(20.84, 81.96, 304.92°) |
| OKLab | oklab(33.84% 0.0056 -0.1944) |
| OKLCH | oklch(33.84% 0.195 271.6) |
| XYZ | xyz(6.6193, 3.2033, 30.4002) |
| Luminance | 0.0320 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.52
Cobalt Blue
#030AA7
ΔE00 2.51
Royal Blue (survey)
#0504AA
ΔE00 3.05
Ultramarine
#2000B1
ΔE00 3.77
Darkblue
#00008B
ΔE00 4.29
Indigo Blue
#3A18B1
ΔE00 4.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1799 #919917
analogous
#175099 #1F1799 #601799
triadic
#1F1799 #991F17 #17991F
tetradic
#1F1799 #991750 #919917 #179960
square
#1F1799 #991750 #919917 #179960
split-complementary
#1F1799 #996017 #509917
monochromatic
#09072F #140F64 #1F1799 #2A1FCE #5147E3
Accessibility & contrast
On white
12.80
#1F1799 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#1F1799 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1799
12.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1799 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1799 | 1.00 | 12.80 | 1.64 | 12.80 |
| #FFFFFF | 12.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00389C
Deuteranopia (green-blind)
#002C97
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #1f1799; /* rgb */ color: rgb(31, 23, 153); /* oklch */ color: oklch(33.8% 0.195 271.6);
Tailwind
colors: {
custom: {
50: '#7359b8',
500: '#1f1799',
950: '#000000',
},
}SCSS
$custom: #1f1799; $custom-light: #7359b8; $custom-dark: #000000;
JSON
{
"hex": "#1f1799",
"rgb": {
"r": 31,
"g": 23,
"b": 153
},
"hsl": {
"h": 243.692,
"s": 73.864,
"l": 34.51
},
"oklch": {
"l": 0.33837,
"c": 0.1945,
"h": 271.6
},
"luminance": 0.03204
}Semantic roles & 50–950 ramp
primary
#1F1799
secondary
#BDC547
accent
#F137E5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981