#2C1281#2C1281
#2C1281 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.167 H 281.7°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1281 |
|---|---|
| RGB | rgb(44, 18, 129) |
| HSL | hsl(254, 76%, 29%) |
| HSV | hsv(254, 86%, 51%) |
| CMYK | cmyk(65.9%, 86%, 0%, 49.4%) |
| CIE-LAB | lab(18.16, 42.79, -56.63) |
| CIE-LCH | lch(18.16, 70.98, 307.07°) |
| OKLab | oklab(31.4% 0.0337 -0.1634) |
| OKLCH | oklch(31.4% 0.167 281.7) |
| XYZ | xyz(5.2162, 2.5527, 20.9825) |
| Luminance | 0.0255 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.67
Royal
#0C1793
ΔE00 3.75
Darkblue
#00008B
ΔE00 4.04
Navy
#000080
ΔE00 4.14
Midnight Blue
#191970
ΔE00 4.19
Deep Blue
#040273
ΔE00 4.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1281 #678112
analogous
#123081 #2C1281 #641281
triadic
#2C1281 #812C12 #12812C
tetradic
#2C1281 #811230 #678112 #128164
square
#2C1281 #811230 #678112 #128164
split-complementary
#2C1281 #816412 #308112
monochromatic
#09041B #1A0B4B #2C1281 #3E19B7 #562CE2
Accessibility & contrast
On white
13.90
#2C1281 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2C1281 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1281
13.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1281 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1281 | 1.00 | 13.90 | 1.51 | 13.90 |
| #FFFFFF | 13.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2c1281; /* rgb */ color: rgb(44, 18, 129); /* oklch */ color: oklch(31.4% 0.167 281.7);
Tailwind
colors: {
custom: {
50: '#7256a7',
500: '#2c1281',
950: '#000000',
},
}SCSS
$custom: #2c1281; $custom-light: #7256a7; $custom-dark: #000000;
JSON
{
"hex": "#2c1281",
"rgb": {
"r": 44,
"g": 18,
"b": 129
},
"hsl": {
"h": 254.054,
"s": 75.51,
"l": 28.824
},
"oklch": {
"l": 0.31398,
"c": 0.16685,
"h": 281.7
},
"luminance": 0.02553
}Semantic roles & 50–950 ramp
primary
#2C1281
secondary
#99B738
accent
#F236C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F