#1F1381#1F1381
#1F1381 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.4% C 0.169 H 274.5°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1381 |
|---|---|
| RGB | rgb(31, 19, 129) |
| HSL | hsl(247, 74%, 29%) |
| HSV | hsv(247, 85%, 51%) |
| CMYK | cmyk(76%, 85.3%, 0%, 49.4%) |
| CIE-LAB | lab(17.19, 41.24, -58.27) |
| CIE-LCH | lch(17.19, 71.39, 305.29°) |
| OKLab | oklab(30.45% 0.0133 -0.1685) |
| OKLCH | oklch(30.45% 0.169 274.5) |
| XYZ | xyz(4.7591, 2.3416, 20.9658) |
| Luminance | 0.0234 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.87
Darkblue
#00008B
ΔE00 3.39
Midnight Blue
#191970
ΔE00 3.39
Navy
#000080
ΔE00 3.41
Deep Blue
#040273
ΔE00 3.89
Dark Royal Blue
#02066F
ΔE00 3.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1381 #758113
analogous
#133E81 #1F1381 #561381
triadic
#1F1381 #811F13 #13811F
tetradic
#1F1381 #81133E #758113 #138156
square
#1F1381 #81133E #758113 #138156
split-complementary
#1F1381 #815613 #3E8113
monochromatic
#06041B #120B4C #1F1381 #2C1BB6 #422EE0
Accessibility & contrast
On white
14.30
#1F1381 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#1F1381 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1381
14.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1381 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1381 | 1.00 | 14.30 | 1.47 | 14.30 |
| #FFFFFF | 14.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F84
Deuteranopia (green-blind)
#00257F
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #1f1381; /* rgb */ color: rgb(31, 19, 129); /* oklch */ color: oklch(30.4% 0.169 274.5);
Tailwind
colors: {
custom: {
50: '#6d55a7',
500: '#1f1381',
950: '#000000',
},
}SCSS
$custom: #1f1381; $custom-light: #6d55a7; $custom-dark: #000000;
JSON
{
"hex": "#1f1381",
"rgb": {
"r": 31,
"g": 19,
"b": 129
},
"hsl": {
"h": 246.545,
"s": 74.324,
"l": 29.02
},
"oklch": {
"l": 0.30449,
"c": 0.16901,
"h": 274.5
},
"luminance": 0.02342
}Semantic roles & 50–950 ramp
primary
#1F1381
secondary
#A9B63A
accent
#F137DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F