#2F1782#2F1782
#2F1782 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.163 H 282.6°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1782 |
|---|---|
| RGB | rgb(47, 23, 130) |
| HSL | hsl(253, 70%, 30%) |
| HSV | hsv(253, 82%, 51%) |
| CMYK | cmyk(63.8%, 82.3%, 0%, 49%) |
| CIE-LAB | lab(19.34, 41.13, -55.29) |
| CIE-LCH | lch(19.34, 68.91, 306.65°) |
| OKLab | oklab(32.32% 0.0356 -0.1595) |
| OKLCH | oklch(32.32% 0.163 282.6) |
| XYZ | xyz(5.5067, 2.8284, 21.3705) |
| Luminance | 0.0283 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.23
Royal
#0C1793
ΔE00 3.78
Midnight Blue
#191970
ΔE00 4.13
Darkblue
#00008B
ΔE00 4.83
Navy
#000080
ΔE00 5.01
Indigo
#4B0082
ΔE00 5.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1782 #6A8217
analogous
#173482 #2F1782 #651782
triadic
#2F1782 #822F17 #17822F
tetradic
#2F1782 #821734 #6A8217 #178265
square
#2F1782 #821734 #6A8217 #178265
split-complementary
#2F1782 #826517 #348217
monochromatic
#09051A #1C0E4E #2F1782 #4220B6 #5C38DC
Accessibility & contrast
On white
13.41
#2F1782 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2F1782 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1782
13.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1782 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1782 | 1.00 | 13.41 | 1.57 | 13.41 |
| #FFFFFF | 13.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003285
Deuteranopia (green-blind)
#002B80
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2f1782; /* rgb */ color: rgb(47, 23, 130); /* oklch */ color: oklch(32.3% 0.163 282.6);
Tailwind
colors: {
custom: {
50: '#7458a7',
500: '#2f1782',
950: '#000000',
},
}SCSS
$custom: #2f1782; $custom-light: #7458a7; $custom-dark: #000000;
JSON
{
"hex": "#2f1782",
"rgb": {
"r": 47,
"g": 23,
"b": 130
},
"hsl": {
"h": 253.458,
"s": 69.935,
"l": 30
},
"oklch": {
"l": 0.32324,
"c": 0.1634,
"h": 282.6
},
"luminance": 0.02829
}Semantic roles & 50–950 ramp
primary
#2F1782
secondary
#9BB63E
accent
#ED3BC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F