#1F117F#1F117F
#1F117F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.0% C 0.168 H 275.0°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).
Color values
| HEX | #1F117F |
|---|---|
| RGB | rgb(31, 17, 127) |
| HSL | hsl(248, 76%, 28%) |
| HSV | hsv(248, 87%, 50%) |
| CMYK | cmyk(75.6%, 86.6%, 0%, 50.2%) |
| CIE-LAB | lab(16.62, 41.53, -57.94) |
| CIE-LCH | lch(16.62, 71.29, 305.64°) |
| OKLab | oklab(29.99% 0.0146 -0.1675) |
| OKLCH | oklch(29.99% 0.168 275) |
| XYZ | xyz(4.5950, 2.2241, 20.2617) |
| Luminance | 0.0222 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy
#000080
ΔE00 3.11
Darkblue
#00008B
ΔE00 3.25
Royal
#0C1793
ΔE00 3.25
Midnight Blue
#191970
ΔE00 3.40
Deep Blue
#040273
ΔE00 3.49
Dark Royal Blue
#02066F
ΔE00 3.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F117F #717F11
analogous
#113A7F #1F117F #56117F
triadic
#1F117F #7F1F11 #117F1F
tetradic
#1F117F #7F113A #717F11 #117F56
square
#1F117F #7F113A #717F11 #117F56
split-complementary
#1F117F #7F5611 #3A7F11
monochromatic
#07041B #120A49 #1F117F #2C18B5 #4028E2
Accessibility & contrast
On white
14.53
#1F117F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#1F117F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F117F
14.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F117F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F117F | 1.00 | 14.53 | 1.45 | 14.53 |
| #FFFFFF | 14.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #1f117f; /* rgb */ color: rgb(31, 17, 127); /* oklch */ color: oklch(30.0% 0.168 275.0);
Tailwind
colors: {
custom: {
50: '#6d54a5',
500: '#1f117f',
950: '#000000',
},
}SCSS
$custom: #1f117f; $custom-light: #6d54a5; $custom-dark: #000000;
JSON
{
"hex": "#1f117f",
"rgb": {
"r": 31,
"g": 17,
"b": 127
},
"hsl": {
"h": 247.636,
"s": 76.389,
"l": 28.235
},
"oklch": {
"l": 0.29987,
"c": 0.16811,
"h": 275
},
"luminance": 0.02225
}Semantic roles & 50–950 ramp
primary
#1F117F
secondary
#A5B537
accent
#F335DB
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F