#2C177A#2C177A
#2C177A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.154 H 282.5°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).
Color values
| HEX | #2C177A |
|---|---|
| RGB | rgb(44, 23, 122) |
| HSL | hsl(253, 68%, 28%) |
| HSV | hsv(253, 81%, 48%) |
| CMYK | cmyk(63.9%, 81.1%, 0%, 52.2%) |
| CIE-LAB | lab(18.16, 38.31, -52.17) |
| CIE-LCH | lch(18.16, 64.73, 306.29°) |
| OKLab | oklab(31.16% 0.0333 -0.1505) |
| OKLCH | oklch(31.16% 0.154 282.5) |
| XYZ | xyz(4.8569, 2.5531, 18.6454) |
| Luminance | 0.0255 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.10
Indigo (survey)
#380282
ΔE00 3.74
Royal
#0C1793
ΔE00 4.51
Dark Royal Blue
#02066F
ΔE00 4.81
Deep Blue
#040273
ΔE00 4.94
Navy
#000080
ΔE00 5.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C177A #657A17
analogous
#17337A #2C177A #5D177A
triadic
#2C177A #7A2C17 #177A2C
tetradic
#2C177A #7A1733 #657A17 #177A5D
square
#2C177A #7A1733 #657A17 #177A5D
split-complementary
#2C177A #7A5D17 #337A17
monochromatic
#09051A #190D47 #2C177A #3F21AD #5633D9
Accessibility & contrast
On white
13.90
#2C177A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2C177A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C177A
13.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C177A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C177A | 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)
#002F7D
Deuteranopia (green-blind)
#002978
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2c177a; /* rgb */ color: rgb(44, 23, 122); /* oklch */ color: oklch(31.2% 0.154 282.5);
Tailwind
colors: {
custom: {
50: '#7157a2',
500: '#2c177a',
950: '#000000',
},
}SCSS
$custom: #2c177a; $custom-light: #7157a2; $custom-dark: #000000;
JSON
{
"hex": "#2c177a",
"rgb": {
"r": 44,
"g": 23,
"b": 122
},
"hsl": {
"h": 252.727,
"s": 68.276,
"l": 28.431
},
"oklch": {
"l": 0.31162,
"c": 0.15412,
"h": 282.5
},
"luminance": 0.02553
}Semantic roles & 50–950 ramp
primary
#2C177A
secondary
#97AF3E
accent
#EB3DC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F