#1F0642#1F0642
#1F0642 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.4% C 0.103 H 295.1°. Best body text is #FFFFFF at 18.06:1 contrast (WCAG AA passes).
Color values
| HEX | #1F0642 |
|---|---|
| RGB | rgb(31, 6, 66) |
| HSL | hsl(265, 83%, 14%) |
| HSV | hsv(265, 91%, 26%) |
| CMYK | cmyk(53%, 90.9%, 0%, 74.1%) |
| CIE-LAB | lab(7.36, 27.80, -32.40) |
| CIE-LCH | lch(7.36, 42.70, 310.63°) |
| OKLab | oklab(21.41% 0.0436 -0.093) |
| OKLCH | oklch(21.41% 0.103 295.1) |
| XYZ | xyz(1.6133, 0.8149, 5.2255) |
| Luminance | 0.0081 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.75
Midnight Purple
#280137
ΔE00 4.33
Night Blue
#040348
ΔE00 4.76
Very Dark Purple
#2A0134
ΔE00 5.54
Dark Violet
#34013F
ΔE00 5.71
Dark Purple
#35063E
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F0642 #294206
analogous
#060B42 #1F0642 #3D0642
triadic
#1F0642 #421F06 #06421F
tetradic
#1F0642 #42060B #294206 #06423D
square
#1F0642 #42060B #294206 #06423D
split-complementary
#1F0642 #423D06 #0B4206
monochromatic
#0D031C #0D031C #1F0642 #390B7A #5410B2
Accessibility & contrast
On white
18.06
#1F0642 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.16
#1F0642 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F0642
18.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F0642 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F0642 | 1.00 | 18.06 | 1.16 | 18.06 |
| #FFFFFF | 18.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 18.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#001744
Deuteranopia (green-blind)
#001541
Tritanopia (blue-blind)
#151724
Achromatopsia (no color)
#161616
Design tokens & code
CSS
--color: #1f0642; /* rgb */ color: rgb(31, 6, 66); /* oklch */ color: oklch(21.4% 0.103 295.1);
Tailwind
colors: {
custom: {
50: '#604977',
500: '#1f0642',
950: '#000000',
},
}SCSS
$custom: #1f0642; $custom-light: #604977; $custom-dark: #000000;
JSON
{
"hex": "#1f0642",
"rgb": {
"r": 31,
"g": 6,
"b": 66
},
"hsl": {
"h": 265,
"s": 83.333,
"l": 14.118
},
"oklch": {
"l": 0.21406,
"c": 0.10275,
"h": 295.1
},
"luminance": 0.00815
}Semantic roles & 50–950 ramp
primary
#1F0642
secondary
#5A8222
accent
#FA2EA5
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B