#2C197F#2C197F
#2C197F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.158 H 281.1°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).
Color values
| HEX | #2C197F |
|---|---|
| RGB | rgb(44, 25, 127) |
| HSL | hsl(251, 67%, 30%) |
| HSV | hsv(251, 80%, 50%) |
| CMYK | cmyk(65.4%, 80.3%, 0%, 50.2%) |
| CIE-LAB | lab(19.07, 38.86, -53.86) |
| CIE-LCH | lch(19.07, 66.41, 305.81°) |
| OKLab | oklab(31.96% 0.0306 -0.1554) |
| OKLCH | oklch(31.96% 0.158 281.1) |
| XYZ | xyz(5.2159, 2.7626, 20.3329) |
| Luminance | 0.0276 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.40
Royal
#0C1793
ΔE00 3.85
Indigo (survey)
#380282
ΔE00 3.90
Darkblue
#00008B
ΔE00 5.09
Navy
#000080
ΔE00 5.14
Dark Royal Blue
#02066F
ΔE00 5.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C197F #6C7F19
analogous
#19397F #2C197F #5F197F
triadic
#2C197F #7F2C19 #197F2C
tetradic
#2C197F #7F1939 #6C7F19 #197F5F
square
#2C197F #7F1939 #6C7F19 #197F5F
split-complementary
#2C197F #7F5F19 #397F19
monochromatic
#09051A #1A0F4C #2C197F #3E23B2 #583AD8
Accessibility & contrast
On white
13.53
#2C197F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2C197F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C197F
13.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C197F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C197F | 1.00 | 13.53 | 1.55 | 13.53 |
| #FFFFFF | 13.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2c197f; /* rgb */ color: rgb(44, 25, 127); /* oklch */ color: oklch(32.0% 0.158 281.1);
Tailwind
colors: {
custom: {
50: '#7159a5',
500: '#2c197f',
950: '#000000',
},
}SCSS
$custom: #2c197f; $custom-light: #7159a5; $custom-dark: #000000;
JSON
{
"hex": "#2c197f",
"rgb": {
"r": 44,
"g": 25,
"b": 127
},
"hsl": {
"h": 251.176,
"s": 67.105,
"l": 29.804
},
"oklch": {
"l": 0.31962,
"c": 0.15838,
"h": 281.1
},
"luminance": 0.02763
}Semantic roles & 50–950 ramp
primary
#2C197F
secondary
#9EB341
accent
#EA3ECA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F