#1F1682#1F1682
#1F1682 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.168 H 274.1°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1682 |
|---|---|
| RGB | rgb(31, 22, 130) |
| HSL | hsl(245, 71%, 30%) |
| HSV | hsv(245, 83%, 51%) |
| CMYK | cmyk(76.2%, 83.1%, 0%, 49%) |
| CIE-LAB | lab(17.81, 40.10, -57.87) |
| CIE-LCH | lch(17.81, 70.40, 304.72°) |
| OKLab | oklab(30.92% 0.012 -0.1674) |
| OKLCH | oklch(30.92% 0.168 274.1) |
| XYZ | xyz(4.8799, 2.4763, 21.3356) |
| Luminance | 0.0248 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.63
Midnight Blue
#191970
ΔE00 3.22
Darkblue
#00008B
ΔE00 3.82
Navy
#000080
ΔE00 3.94
Dark Royal Blue
#02066F
ΔE00 4.35
Indigo (survey)
#380282
ΔE00 4.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1682 #798216
analogous
#164382 #1F1682 #551682
triadic
#1F1682 #821F16 #16821F
tetradic
#1F1682 #821643 #798216 #168255
square
#1F1682 #821643 #798216 #168255
split-complementary
#1F1682 #825516 #438216
monochromatic
#06041A #130D4E #1F1682 #2B1FB6 #4335DD
Accessibility & contrast
On white
14.04
#1F1682 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#1F1682 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1682
14.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1682 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1682 | 1.00 | 14.04 | 1.50 | 14.04 |
| #FFFFFF | 14.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003085
Deuteranopia (green-blind)
#002680
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #1f1682; /* rgb */ color: rgb(31, 22, 130); /* oklch */ color: oklch(30.9% 0.168 274.1);
Tailwind
colors: {
custom: {
50: '#6d57a8',
500: '#1f1682',
950: '#000000',
},
}SCSS
$custom: #1f1682; $custom-light: #6d57a8; $custom-dark: #000000;
JSON
{
"hex": "#1f1682",
"rgb": {
"r": 31,
"g": 22,
"b": 130
},
"hsl": {
"h": 245,
"s": 71.053,
"l": 29.804
},
"oklch": {
"l": 0.30917,
"c": 0.16781,
"h": 274.1
},
"luminance": 0.02477
}Semantic roles & 50–950 ramp
primary
#1F1682
secondary
#ACB73D
accent
#EE3ADF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F