#1F115F#1F115F
#1F115F is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.1% C 0.128 H 281.1°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).
Color values
| HEX | #1F115F |
|---|---|
| RGB | rgb(31, 17, 95) |
| HSL | hsl(251, 70%, 22%) |
| HSV | hsv(251, 82%, 37%) |
| CMYK | cmyk(67.4%, 82.1%, 0%, 62.7%) |
| CIE-LAB | lab(12.72, 31.17, -43.54) |
| CIE-LCH | lch(12.72, 53.54, 305.60°) |
| OKLab | oklab(26.15% 0.0246 -0.1256) |
| OKLCH | oklch(26.15% 0.128 281.1) |
| XYZ | xyz(2.8304, 1.5182, 10.9681) |
| Luminance | 0.0152 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 2.44
Darkblue (survey)
#030764
ΔE00 3.42
Midnight Blue
#191970
ΔE00 3.48
Dark Blue
#00035B
ΔE00 3.95
Dark Royal Blue
#02066F
ΔE00 4.38
Night Blue
#040348
ΔE00 4.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F115F #515F11
analogous
#112A5F #1F115F #46115F
triadic
#1F115F #5F1F11 #115F1F
tetradic
#1F115F #5F112A #515F11 #115F46
square
#1F115F #5F112A #515F11 #115F46
split-complementary
#1F115F #5F4611 #2A5F11
monochromatic
#08051A #0E082B #1F115F #301A93 #4124C7
Accessibility & contrast
On white
16.11
#1F115F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.30
#1F115F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F115F
16.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F115F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F115F | 1.00 | 16.11 | 1.30 | 16.11 |
| #FFFFFF | 16.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002461
Deuteranopia (green-blind)
#001E5E
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#212121
Design tokens & code
CSS
--color: #1f115f; /* rgb */ color: rgb(31, 17, 95); /* oklch */ color: oklch(26.1% 0.128 281.1);
Tailwind
colors: {
custom: {
50: '#65518d',
500: '#1f115f',
950: '#000000',
},
}SCSS
$custom: #1f115f; $custom-light: #65518d; $custom-dark: #000000;
JSON
{
"hex": "#1f115f",
"rgb": {
"r": 31,
"g": 17,
"b": 95
},
"hsl": {
"h": 250.769,
"s": 69.643,
"l": 21.961
},
"oklch": {
"l": 0.26146,
"c": 0.128,
"h": 281.1
},
"luminance": 0.01518
}Semantic roles & 50–950 ramp
primary
#1F115F
secondary
#869834
accent
#EC3BCD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D