#1F0C5F#1F0C5F
#1F0C5F is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.5% C 0.133 H 282.0°. Best body text is #FFFFFF at 16.46:1 contrast (WCAG AA passes).
Color values
| HEX | #1F0C5F |
|---|---|
| RGB | rgb(31, 12, 95) |
| HSL | hsl(254, 78%, 21%) |
| HSV | hsv(254, 87%, 37%) |
| CMYK | cmyk(67.4%, 87.4%, 0%, 62.7%) |
| CIE-LAB | lab(11.83, 33.77, -45.02) |
| CIE-LCH | lch(11.83, 56.28, 306.88°) |
| OKLab | oklab(25.52% 0.0277 -0.1299) |
| OKLCH | oklch(25.52% 0.133 282) |
| XYZ | xyz(2.7615, 1.3803, 10.9452) |
| Luminance | 0.0138 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 2.04
Darkblue (survey)
#030764
ΔE00 2.92
Dark Blue
#00035B
ΔE00 3.30
Dark Royal Blue
#02066F
ΔE00 3.87
Midnight Blue
#191970
ΔE00 4.10
Deep Blue
#040273
ΔE00 4.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F0C5F #4C5F0C
analogous
#0C225F #1F0C5F #480C5F
triadic
#1F0C5F #5F1F0C #0C5F1F
tetradic
#1F0C5F #5F0C22 #4C5F0C #0C5F48
square
#1F0C5F #5F0C22 #4C5F0C #0C5F48
split-complementary
#1F0C5F #5F480C #225F0C
monochromatic
#09031B #0D0529 #1F0C5F #311395 #421ACC
Accessibility & contrast
On white
16.46
#1F0C5F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.28
#1F0C5F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F0C5F
16.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F0C5F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F0C5F | 1.00 | 16.46 | 1.28 | 16.46 |
| #FFFFFF | 16.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002261
Deuteranopia (green-blind)
#001C5E
Tritanopia (blue-blind)
#002636
Achromatopsia (no color)
#1F1F1F
Design tokens & code
CSS
--color: #1f0c5f; /* rgb */ color: rgb(31, 12, 95); /* oklch */ color: oklch(25.5% 0.133 282.0);
Tailwind
colors: {
custom: {
50: '#654f8d',
500: '#1f0c5f',
950: '#000000',
},
}SCSS
$custom: #1f0c5f; $custom-light: #654f8d; $custom-dark: #000000;
JSON
{
"hex": "#1f0c5f",
"rgb": {
"r": 31,
"g": 12,
"b": 95
},
"hsl": {
"h": 253.735,
"s": 77.57,
"l": 20.98
},
"oklch": {
"l": 0.25522,
"c": 0.13278,
"h": 282
},
"luminance": 0.0138
}Semantic roles & 50–950 ramp
primary
#1F0C5F
secondary
#81992D
accent
#F434C8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D