#2C147F#2C147F
#2C147F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.163 H 281.8°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).
Color values
| HEX | #2C147F |
|---|---|
| RGB | rgb(44, 20, 127) |
| HSL | hsl(253, 73%, 29%) |
| HSV | hsv(253, 84%, 50%) |
| CMYK | cmyk(65.4%, 84.3%, 0%, 50.2%) |
| CIE-LAB | lab(18.22, 41.31, -55.25) |
| CIE-LCH | lch(18.22, 68.99, 306.78°) |
| OKLab | oklab(31.37% 0.0334 -0.1594) |
| OKLCH | oklch(31.37% 0.163 281.8) |
| XYZ | xyz(5.1184, 2.5677, 20.3005) |
| Luminance | 0.0257 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.00
Midnight Blue
#191970
ΔE00 3.82
Royal
#0C1793
ΔE00 3.90
Darkblue
#00008B
ΔE00 4.39
Navy
#000080
ΔE00 4.40
Deep Blue
#040273
ΔE00 4.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C147F #677F14
analogous
#14327F #2C147F #62147F
triadic
#2C147F #7F2C14 #147F2C
tetradic
#2C147F #7F1432 #677F14 #147F62
square
#2C147F #7F1432 #677F14 #147F62
split-complementary
#2C147F #7F6214 #327F14
monochromatic
#09041A #1A0C4A #2C147F #3E1CB4 #562FDE
Accessibility & contrast
On white
13.87
#2C147F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2C147F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C147F
13.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C147F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C147F | 1.00 | 13.87 | 1.51 | 13.87 |
| #FFFFFF | 13.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2c147f; /* rgb */ color: rgb(44, 20, 127); /* oklch */ color: oklch(31.4% 0.163 281.8);
Tailwind
colors: {
custom: {
50: '#7256a5',
500: '#2c147f',
950: '#000000',
},
}SCSS
$custom: #2c147f; $custom-light: #7256a5; $custom-dark: #000000;
JSON
{
"hex": "#2c147f",
"rgb": {
"r": 44,
"g": 20,
"b": 127
},
"hsl": {
"h": 253.458,
"s": 72.789,
"l": 28.824
},
"oklch": {
"l": 0.31375,
"c": 0.16288,
"h": 281.8
},
"luminance": 0.02568
}Semantic roles & 50–950 ramp
primary
#2C147F
secondary
#99B43B
accent
#EF38C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F