#1F115C#1F115C
#1F115C is a dark, vivid violet. Relative luminance 0.015; OKLCH L 25.8% C 0.124 H 281.8°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).
Color values
| HEX | #1F115C |
|---|---|
| RGB | rgb(31, 17, 92) |
| HSL | hsl(251, 69%, 21%) |
| HSV | hsv(251, 82%, 36%) |
| CMYK | cmyk(66.3%, 81.5%, 0%, 63.9%) |
| CIE-LAB | lab(12.38, 30.16, -42.09) |
| CIE-LCH | lch(12.38, 51.78, 305.63°) |
| OKLab | oklab(25.8% 0.0255 -0.1214) |
| OKLCH | oklch(25.8% 0.124 281.8) |
| XYZ | xyz(2.6967, 1.4647, 10.2638) |
| Luminance | 0.0146 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 2.12
Darkblue (survey)
#030764
ΔE00 3.76
Midnight Blue
#191970
ΔE00 3.93
Dark Blue
#00035B
ΔE00 4.09
Night Blue
#040348
ΔE00 4.68
Dark Royal Blue
#02066F
ΔE00 4.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F115C #4E5C11
analogous
#11295C #1F115C #45115C
triadic
#1F115C #5C1F11 #115C1F
tetradic
#1F115C #5C1129 #4E5C11 #115C45
square
#1F115C #5C1129 #4E5C11 #115C45
split-complementary
#1F115C #5C4511 #295C11
monochromatic
#09051A #0E0728 #1F115C #301B90 #4224C3
Accessibility & contrast
On white
16.24
#1F115C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.29
#1F115C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F115C
16.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F115C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F115C | 1.00 | 16.24 | 1.29 | 16.24 |
| #FFFFFF | 16.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00235E
Deuteranopia (green-blind)
#001E5B
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#202020
Design tokens & code
CSS
--color: #1f115c; /* rgb */ color: rgb(31, 17, 92); /* oklch */ color: oklch(25.8% 0.124 281.8);
Tailwind
colors: {
custom: {
50: '#64518b',
500: '#1f115c',
950: '#000000',
},
}SCSS
$custom: #1f115c; $custom-light: #64518b; $custom-dark: #000000;
JSON
{
"hex": "#1f115c",
"rgb": {
"r": 31,
"g": 17,
"b": 92
},
"hsl": {
"h": 251.2,
"s": 68.807,
"l": 21.373
},
"oklch": {
"l": 0.25804,
"c": 0.12404,
"h": 281.8
},
"luminance": 0.01465
}Semantic roles & 50–950 ramp
primary
#1F115C
secondary
#839534
accent
#EC3CCB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D