#1F167F#1F167F
#1F167F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.164 H 274.5°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).
Color values
| HEX | #1F167F |
|---|---|
| RGB | rgb(31, 22, 127) |
| HSL | hsl(245, 70%, 29%) |
| HSV | hsv(245, 83%, 50%) |
| CMYK | cmyk(75.6%, 82.7%, 0%, 50.2%) |
| CIE-LAB | lab(17.45, 39.12, -56.57) |
| CIE-LCH | lch(17.45, 68.78, 304.66°) |
| OKLab | oklab(30.56% 0.0128 -0.1636) |
| OKLCH | oklch(30.56% 0.164 274.5) |
| XYZ | xyz(4.6815, 2.3970, 20.2905) |
| Luminance | 0.0240 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.80
Royal
#0C1793
ΔE00 3.04
Navy
#000080
ΔE00 3.96
Darkblue
#00008B
ΔE00 4.02
Dark Royal Blue
#02066F
ΔE00 4.09
Deep Blue
#040273
ΔE00 4.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F167F #767F16
analogous
#16427F #1F167F #54167F
triadic
#1F167F #7F1F16 #167F1F
tetradic
#1F167F #7F1642 #767F16 #167F54
square
#1F167F #7F1642 #767F16 #167F54
split-complementary
#1F167F #7F5416 #427F16
monochromatic
#06051A #120D4B #1F167F #2C1FB3 #4234DC
Accessibility & contrast
On white
14.19
#1F167F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#1F167F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F167F
14.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F167F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F167F | 1.00 | 14.19 | 1.48 | 14.19 |
| #FFFFFF | 14.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #1f167f; /* rgb */ color: rgb(31, 22, 127); /* oklch */ color: oklch(30.6% 0.164 274.5);
Tailwind
colors: {
custom: {
50: '#6c56a5',
500: '#1f167f',
950: '#000000',
},
}SCSS
$custom: #1f167f; $custom-light: #6c56a5; $custom-dark: #000000;
JSON
{
"hex": "#1f167f",
"rgb": {
"r": 31,
"g": 22,
"b": 127
},
"hsl": {
"h": 245.143,
"s": 70.47,
"l": 29.216
},
"oklch": {
"l": 0.30557,
"c": 0.16411,
"h": 274.5
},
"luminance": 0.02397
}Semantic roles & 50–950 ramp
primary
#1F167F
secondary
#AAB43D
accent
#ED3BDE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F