#2C147D#2C147D
#2C147D is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.160 H 282.3°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).
Color values
| HEX | #2C147D |
|---|---|
| RGB | rgb(44, 20, 125) |
| HSL | hsl(254, 72%, 28%) |
| HSV | hsv(254, 84%, 49%) |
| CMYK | cmyk(64.8%, 84%, 0%, 51%) |
| CIE-LAB | lab(17.99, 40.70, -54.36) |
| CIE-LCH | lch(17.99, 67.91, 306.82°) |
| OKLab | oklab(31.15% 0.0341 -0.1568) |
| OKLCH | oklch(31.15% 0.16 282.3) |
| XYZ | xyz(4.9894, 2.5161, 19.6208) |
| Luminance | 0.0252 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.06
Midnight Blue
#191970
ΔE00 3.64
Royal
#0C1793
ΔE00 4.15
Navy
#000080
ΔE00 4.45
Darkblue
#00008B
ΔE00 4.55
Deep Blue
#040273
ΔE00 4.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C147D #657D14
analogous
#14307D #2C147D #60147D
triadic
#2C147D #7D2C14 #147D2C
tetradic
#2C147D #7D1430 #657D14 #147D60
square
#2C147D #7D1430 #657D14 #147D60
split-complementary
#2C147D #7D6014 #307D14
monochromatic
#09041A #190C48 #2C147D #3F1CB2 #562EDE
Accessibility & contrast
On white
13.97
#2C147D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2C147D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C147D
13.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C147D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C147D | 1.00 | 13.97 | 1.50 | 13.97 |
| #FFFFFF | 13.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00287B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2c147d; /* rgb */ color: rgb(44, 20, 125); /* oklch */ color: oklch(31.1% 0.160 282.3);
Tailwind
colors: {
custom: {
50: '#7156a4',
500: '#2c147d',
950: '#000000',
},
}SCSS
$custom: #2c147d; $custom-light: #7156a4; $custom-dark: #000000;
JSON
{
"hex": "#2c147d",
"rgb": {
"r": 44,
"g": 20,
"b": 125
},
"hsl": {
"h": 253.714,
"s": 72.414,
"l": 28.431
},
"oklch": {
"l": 0.31148,
"c": 0.16048,
"h": 282.3
},
"luminance": 0.02516
}Semantic roles & 50–950 ramp
primary
#2C147D
secondary
#97B23A
accent
#EF39C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F