#1F2179#1F2179
#1F2179 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.145 H 273.3°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2179 |
|---|---|
| RGB | rgb(31, 33, 121) |
| HSL | hsl(239, 59%, 30%) |
| HSV | hsv(239, 74%, 47%) |
| CMYK | cmyk(74.4%, 72.7%, 0%, 52.5%) |
| CIE-LAB | lab(19.05, 30.58, -50.09) |
| CIE-LCH | lch(19.05, 58.69, 301.41°) |
| OKLab | oklab(31.49% 0.0084 -0.1449) |
| OKLCH | oklch(31.49% 0.145 273.3) |
| XYZ | xyz(4.5590, 2.7590, 18.3777) |
| Luminance | 0.0276 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.31
Royal
#0C1793
ΔE00 4.85
Dark Royal Blue
#02066F
ΔE00 6.15
Darkblue (survey)
#030764
ΔE00 6.55
Deep Blue
#040273
ΔE00 6.68
Navy
#000080
ΔE00 6.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2179 #79771F
analogous
#1F4E79 #1F2179 #4A1F79
triadic
#1F2179 #791F21 #21791F
tetradic
#1F2179 #791F4E #79771F #1F794A
square
#1F2179 #791F4E #79771F #1F794A
split-complementary
#1F2179 #794A1F #4E791F
monochromatic
#060718 #131448 #1F2179 #2B2EAA #4347CF
Accessibility & contrast
On white
13.53
#1F2179 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#1F2179 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2179
13.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2179 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2179 | 1.00 | 13.53 | 1.55 | 13.53 |
| #FFFFFF | 13.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #1f2179; /* rgb */ color: rgb(31, 33, 121); /* oklch */ color: oklch(31.5% 0.145 273.3);
Tailwind
colors: {
custom: {
50: '#6a5da1',
500: '#1f2179',
950: '#000000',
},
}SCSS
$custom: #1f2179; $custom-light: #6a5da1; $custom-dark: #000000;
JSON
{
"hex": "#1f2179",
"rgb": {
"r": 31,
"g": 33,
"b": 121
},
"hsl": {
"h": 238.667,
"s": 59.211,
"l": 29.804
},
"oklch": {
"l": 0.31493,
"c": 0.1451,
"h": 273.3
},
"luminance": 0.02759
}Semantic roles & 50–950 ramp
primary
#1F2179
secondary
#ACAA47
accent
#DF45E2
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F