#1F167C#1F167C
#1F167C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.160 H 274.9°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).
Color values
| HEX | #1F167C |
|---|---|
| RGB | rgb(31, 22, 124) |
| HSL | hsl(245, 70%, 29%) |
| HSV | hsv(245, 82%, 49%) |
| CMYK | cmyk(75%, 82.3%, 0%, 51.4%) |
| CIE-LAB | lab(17.08, 38.13, -55.26) |
| CIE-LCH | lch(17.08, 67.14, 304.61°) |
| OKLab | oklab(30.2% 0.0136 -0.1598) |
| OKLCH | oklch(30.2% 0.16 274.9) |
| XYZ | xyz(4.4889, 2.3199, 19.2761) |
| Luminance | 0.0232 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.39
Royal
#0C1793
ΔE00 3.48
Dark Royal Blue
#02066F
ΔE00 3.88
Navy
#000080
ΔE00 4.05
Deep Blue
#040273
ΔE00 4.09
Darkblue
#00008B
ΔE00 4.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F167C #737C16
analogous
#16407C #1F167C #52167C
triadic
#1F167C #7C1F16 #167C1F
tetradic
#1F167C #7C1640 #737C16 #167C52
square
#1F167C #7C1640 #737C16 #167C52
split-complementary
#1F167C #7C5216 #407C16
monochromatic
#06051A #120D48 #1F167C #2C1FB0 #4132DB
Accessibility & contrast
On white
14.34
#1F167C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#1F167C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F167C
14.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F167C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F167C | 1.00 | 14.34 | 1.46 | 14.34 |
| #FFFFFF | 14.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #1f167c; /* rgb */ color: rgb(31, 22, 124); /* oklch */ color: oklch(30.2% 0.160 274.9);
Tailwind
colors: {
custom: {
50: '#6c56a3',
500: '#1f167c',
950: '#000000',
},
}SCSS
$custom: #1f167c; $custom-light: #6c56a3; $custom-dark: #000000;
JSON
{
"hex": "#1f167c",
"rgb": {
"r": 31,
"g": 22,
"b": 124
},
"hsl": {
"h": 245.294,
"s": 69.863,
"l": 28.627
},
"oklch": {
"l": 0.30199,
"c": 0.16038,
"h": 274.9
},
"luminance": 0.0232
}Semantic roles & 50–950 ramp
primary
#1F167C
secondary
#A7B13D
accent
#ED3BDD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F