#1F1895#1F1895
#1F1895 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.5% C 0.189 H 271.9°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1895 |
|---|---|
| RGB | rgb(31, 24, 149) |
| HSL | hsl(243, 72%, 34%) |
| HSV | hsv(243, 84%, 58%) |
| CMYK | cmyk(79.2%, 83.9%, 0%, 41.6%) |
| CIE-LAB | lab(20.49, 45.21, -65.31) |
| CIE-LCH | lch(20.49, 79.43, 304.69°) |
| OKLab | oklab(33.45% 0.0064 -0.189) |
| OKLCH | oklch(33.45% 0.189 271.9) |
| XYZ | xyz(6.3147, 3.1138, 28.6962) |
| Luminance | 0.0312 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.22
Cobalt Blue
#030AA7
ΔE00 3.00
Royal Blue (survey)
#0504AA
ΔE00 3.55
Darkblue
#00008B
ΔE00 4.19
Ultramarine
#2000B1
ΔE00 4.33
Indigo Blue
#3A18B1
ΔE00 4.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1895 #8E9518
analogous
#185095 #1F1895 #5E1895
triadic
#1F1895 #951F18 #18951F
tetradic
#1F1895 #951850 #8E9518 #18955E
square
#1F1895 #951850 #8E9518 #18955E
split-complementary
#1F1895 #955E18 #509518
monochromatic
#09072C #141060 #1F1895 #2A20CA #4F46E1
Accessibility & contrast
On white
12.94
#1F1895 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#1F1895 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1895
12.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1895 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1895 | 1.00 | 12.94 | 1.62 | 12.94 |
| #FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003798
Deuteranopia (green-blind)
#002B93
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #1f1895; /* rgb */ color: rgb(31, 24, 149); /* oklch */ color: oklch(33.5% 0.189 271.9);
Tailwind
colors: {
custom: {
50: '#7259b6',
500: '#1f1895',
950: '#000000',
},
}SCSS
$custom: #1f1895; $custom-light: #7259b6; $custom-dark: #000000;
JSON
{
"hex": "#1f1895",
"rgb": {
"r": 31,
"g": 24,
"b": 149
},
"hsl": {
"h": 243.36,
"s": 72.254,
"l": 33.922
},
"oklch": {
"l": 0.33454,
"c": 0.18908,
"h": 271.9
},
"luminance": 0.03115
}Semantic roles & 50–950 ramp
primary
#1F1895
secondary
#BBC246
accent
#EF39E5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980