#2F1678#2F1678
#2F1678 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.152 H 285.0°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1678 |
|---|---|
| RGB | rgb(47, 22, 120) |
| HSL | hsl(255, 69%, 28%) |
| HSV | hsv(255, 82%, 47%) |
| CMYK | cmyk(60.8%, 81.7%, 0%, 52.9%) |
| CIE-LAB | lab(18.07, 38.57, -51.02) |
| CIE-LCH | lch(18.07, 63.96, 307.09°) |
| OKLab | oklab(31.11% 0.0395 -0.147) |
| OKLCH | oklch(31.11% 0.152 285) |
| XYZ | xyz(4.8483, 2.5339, 17.9993) |
| Luminance | 0.0253 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.46
Indigo (survey)
#380282
ΔE00 3.49
Dark Royal Blue
#02066F
ΔE00 4.97
Royal
#0C1793
ΔE00 5.06
Deep Blue
#040273
ΔE00 5.08
Navy
#000080
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1678 #5F7816
analogous
#162E78 #2F1678 #601678
triadic
#2F1678 #782F16 #16782F
tetradic
#2F1678 #78162E #5F7816 #167860
square
#2F1678 #78162E #5F7816 #167860
split-complementary
#2F1678 #786016 #2E7816
monochromatic
#0A051A #1B0D44 #2F1678 #431FAC #5B2FD9
Accessibility & contrast
On white
13.94
#2F1678 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2F1678 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1678
13.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1678 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1678 | 1.00 | 13.94 | 1.51 | 13.94 |
| #FFFFFF | 13.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#053347
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2f1678; /* rgb */ color: rgb(47, 22, 120); /* oklch */ color: oklch(31.1% 0.152 285.0);
Tailwind
colors: {
custom: {
50: '#7257a0',
500: '#2f1678',
950: '#000000',
},
}SCSS
$custom: #2f1678; $custom-light: #7257a0; $custom-dark: #000000;
JSON
{
"hex": "#2f1678",
"rgb": {
"r": 47,
"g": 22,
"b": 120
},
"hsl": {
"h": 255.306,
"s": 69.014,
"l": 27.843
},
"oklch": {
"l": 0.31112,
"c": 0.15222,
"h": 285
},
"luminance": 0.02534
}Semantic roles & 50–950 ramp
primary
#2F1678
secondary
#91AD3C
accent
#EC3CBF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F