#1F168F#1F168F
#1F168F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.5% C 0.183 H 272.6°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).
Color values
| HEX | #1F168F |
|---|---|
| RGB | rgb(31, 22, 143) |
| HSL | hsl(244, 73%, 32%) |
| HSV | hsv(244, 85%, 56%) |
| CMYK | cmyk(78.3%, 84.6%, 0%, 43.9%) |
| CIE-LAB | lab(19.42, 44.26, -63.36) |
| CIE-LCH | lch(19.42, 77.29, 304.93°) |
| OKLab | oklab(32.5% 0.0084 -0.1833) |
| OKLCH | oklch(32.5% 0.183 272.6) |
| XYZ | xyz(5.8083, 2.8477, 26.2248) |
| Luminance | 0.0285 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.26
Cobalt Blue
#030AA7
ΔE00 3.50
Darkblue
#00008B
ΔE00 3.62
Royal Blue (survey)
#0504AA
ΔE00 4.01
Navy
#000080
ΔE00 4.44
Indigo (survey)
#380282
ΔE00 4.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F168F #868F16
analogous
#16498F #1F168F #5C168F
triadic
#1F168F #8F1F16 #168F1F
tetradic
#1F168F #8F1649 #868F16 #168F5C
square
#1F168F #8F1649 #868F16 #168F5C
split-complementary
#1F168F #8F5C16 #498F16
monochromatic
#080625 #140E5A #1F168F #2A1EC4 #4A3EE1
Accessibility & contrast
On white
13.38
#1F168F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#1F168F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F168F
13.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F168F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F168F | 1.00 | 13.38 | 1.57 | 13.38 |
| #FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #1f168f; /* rgb */ color: rgb(31, 22, 143); /* oklch */ color: oklch(32.5% 0.183 272.6);
Tailwind
colors: {
custom: {
50: '#7058b1',
500: '#1f168f',
950: '#000000',
},
}SCSS
$custom: #1f168f; $custom-light: #7058b1; $custom-dark: #000000;
JSON
{
"hex": "#1f168f",
"rgb": {
"r": 31,
"g": 22,
"b": 143
},
"hsl": {
"h": 244.463,
"s": 73.333,
"l": 32.353
},
"oklch": {
"l": 0.32499,
"c": 0.18348,
"h": 272.6
},
"luminance": 0.02848
}Semantic roles & 50–950 ramp
primary
#1F168F
secondary
#B8C13F
accent
#F038E2
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880