#2F1896#2F1896
#2F1896 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.186 H 278.8°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1896 |
|---|---|
| RGB | rgb(47, 24, 150) |
| HSL | hsl(251, 72%, 34%) |
| HSV | hsv(251, 84%, 59%) |
| CMYK | cmyk(68.7%, 84%, 0%, 41.2%) |
| CIE-LAB | lab(21.80, 46.69, -63.73) |
| CIE-LCH | lch(21.80, 79.01, 306.23°) |
| OKLab | oklab(34.69% 0.0285 -0.184) |
| OKLCH | oklch(34.69% 0.186 278.8) |
| XYZ | xyz(7.0022, 3.4590, 29.1469) |
| Luminance | 0.0346 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.78
Cobalt Blue
#030AA7
ΔE00 3.55
Royal Blue (survey)
#0504AA
ΔE00 3.93
Indigo Blue
#3A18B1
ΔE00 3.95
Ultramarine
#2000B1
ΔE00 4.16
Indigo (survey)
#380282
ΔE00 4.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1896 #7F9618
analogous
#184096 #2F1896 #6E1896
triadic
#2F1896 #962F18 #18962F
tetradic
#2F1896 #961840 #7F9618 #18966E
square
#2F1896 #961840 #7F9618 #18966E
split-complementary
#2F1896 #966E18 #409618
monochromatic
#0E072C #1E1061 #2F1896 #4020CB #6347E2
Accessibility & contrast
On white
12.41
#2F1896 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#2F1896 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1896
12.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1896 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1896 | 1.00 | 12.41 | 1.69 | 12.41 |
| #FFFFFF | 12.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003999
Deuteranopia (green-blind)
#002F94
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2f1896; /* rgb */ color: rgb(47, 24, 150); /* oklch */ color: oklch(34.7% 0.186 278.8);
Tailwind
colors: {
custom: {
50: '#785ab6',
500: '#2f1896',
950: '#000000',
},
}SCSS
$custom: #2f1896; $custom-light: #785ab6; $custom-dark: #000000;
JSON
{
"hex": "#2f1896",
"rgb": {
"r": 47,
"g": 24,
"b": 150
},
"hsl": {
"h": 250.952,
"s": 72.414,
"l": 34.118
},
"oklch": {
"l": 0.34693,
"c": 0.18624,
"h": 278.8
},
"luminance": 0.0346
}Semantic roles & 50–950 ramp
primary
#2F1896
secondary
#ACC347
accent
#EF39CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980