#2C147A#2C147A
#2C147A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.157 H 283.0°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).
Color values
| HEX | #2C147A |
|---|---|
| RGB | rgb(44, 20, 122) |
| HSL | hsl(254, 72%, 28%) |
| HSV | hsv(254, 84%, 48%) |
| CMYK | cmyk(63.9%, 83.6%, 0%, 52.2%) |
| CIE-LAB | lab(17.65, 39.79, -53.01) |
| CIE-LCH | lch(17.65, 66.28, 306.89°) |
| OKLab | oklab(30.81% 0.0352 -0.1529) |
| OKLCH | oklch(30.81% 0.157 283) |
| XYZ | xyz(4.8006, 2.4406, 18.6267) |
| Luminance | 0.0244 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.23
Midnight Blue
#191970
ΔE00 3.42
Dark Royal Blue
#02066F
ΔE00 4.50
Deep Blue
#040273
ΔE00 4.54
Royal
#0C1793
ΔE00 4.55
Navy
#000080
ΔE00 4.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C147A #627A14
analogous
#142F7A #2C147A #5F147A
triadic
#2C147A #7A2C14 #147A2C
tetradic
#2C147A #7A142F #627A14 #147A5F
square
#2C147A #7A142F #627A14 #147A5F
split-complementary
#2C147A #7A5F14 #2F7A14
monochromatic
#09041A #190B45 #2C147A #3F1DAF #562CDC
Accessibility & contrast
On white
14.11
#2C147A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2C147A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C147A
14.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C147A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C147A | 1.00 | 14.11 | 1.49 | 14.11 |
| #FFFFFF | 14.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002878
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2c147a; /* rgb */ color: rgb(44, 20, 122); /* oklch */ color: oklch(30.8% 0.157 283.0);
Tailwind
colors: {
custom: {
50: '#7156a2',
500: '#2c147a',
950: '#000000',
},
}SCSS
$custom: #2c147a; $custom-light: #7156a2; $custom-dark: #000000;
JSON
{
"hex": "#2c147a",
"rgb": {
"r": 44,
"g": 20,
"b": 122
},
"hsl": {
"h": 254.118,
"s": 71.831,
"l": 27.843
},
"oklch": {
"l": 0.30809,
"c": 0.15687,
"h": 283
},
"luminance": 0.02441
}Semantic roles & 50–950 ramp
primary
#2C147A
secondary
#94B03A
accent
#EF39C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F