#1F1579#1F1579
#1F1579 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.158 H 275.4°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1579 |
|---|---|
| RGB | rgb(31, 21, 121) |
| HSL | hsl(246, 70%, 28%) |
| HSV | hsv(246, 83%, 47%) |
| CMYK | cmyk(74.4%, 82.6%, 0%, 52.5%) |
| CIE-LAB | lab(16.54, 37.67, -54.24) |
| CIE-LCH | lch(16.54, 66.03, 304.78°) |
| OKLab | oklab(29.72% 0.0148 -0.1568) |
| OKLCH | oklch(29.72% 0.158 275.4) |
| XYZ | xyz(4.2833, 2.2077, 18.2858) |
| Luminance | 0.0221 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.15
Dark Royal Blue
#02066F
ΔE00 3.56
Deep Blue
#040273
ΔE00 3.83
Royal
#0C1793
ΔE00 3.93
Navy
#000080
ΔE00 4.01
Darkblue
#00008B
ΔE00 4.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1579 #6F7915
analogous
#153D79 #1F1579 #511579
triadic
#1F1579 #791F15 #15791F
tetradic
#1F1579 #79153D #6F7915 #157951
square
#1F1579 #79153D #6F7915 #157951
split-complementary
#1F1579 #795115 #3D7915
monochromatic
#07051A #120C45 #1F1579 #2C1EAD #3F2EDB
Accessibility & contrast
On white
14.57
#1F1579 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#1F1579 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1579
14.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1579 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1579 | 1.00 | 14.57 | 1.44 | 14.57 |
| #FFFFFF | 14.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D7C
Deuteranopia (green-blind)
#002477
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #1f1579; /* rgb */ color: rgb(31, 21, 121); /* oklch */ color: oklch(29.7% 0.158 275.4);
Tailwind
colors: {
custom: {
50: '#6b55a1',
500: '#1f1579',
950: '#000000',
},
}SCSS
$custom: #1f1579; $custom-light: #6b55a1; $custom-dark: #000000;
JSON
{
"hex": "#1f1579",
"rgb": {
"r": 31,
"g": 21,
"b": 121
},
"hsl": {
"h": 246,
"s": 70.423,
"l": 27.843
},
"oklch": {
"l": 0.29716,
"c": 0.15752,
"h": 275.4
},
"luminance": 0.02208
}Semantic roles & 50–950 ramp
primary
#1F1579
secondary
#A3AF3B
accent
#ED3BDB
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F