#2C167F#2C167F
#2C167F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.161 H 281.6°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).
Color values
| HEX | #2C167F |
|---|---|
| RGB | rgb(44, 22, 127) |
| HSL | hsl(253, 70%, 29%) |
| HSV | hsv(253, 83%, 50%) |
| CMYK | cmyk(65.4%, 82.7%, 0%, 50.2%) |
| CIE-LAB | lab(18.55, 40.36, -54.72) |
| CIE-LCH | lch(18.55, 67.99, 306.41°) |
| OKLab | oklab(31.6% 0.0323 -0.1579) |
| OKLCH | oklch(31.6% 0.161 281.6) |
| XYZ | xyz(5.1552, 2.6412, 20.3127) |
| Luminance | 0.0264 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.33
Midnight Blue
#191970
ΔE00 3.63
Royal
#0C1793
ΔE00 3.85
Darkblue
#00008B
ΔE00 4.65
Navy
#000080
ΔE00 4.67
Deep Blue
#040273
ΔE00 4.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C167F #697F16
analogous
#16357F #2C167F #61167F
triadic
#2C167F #7F2C16 #167F2C
tetradic
#2C167F #7F1635 #697F16 #167F61
square
#2C167F #7F1635 #697F16 #167F61
split-complementary
#2C167F #7F6116 #357F16
monochromatic
#09051A #1A0D4B #2C167F #3E1FB3 #5734DC
Accessibility & contrast
On white
13.74
#2C167F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#2C167F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C167F
13.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C167F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C167F | 1.00 | 13.74 | 1.53 | 13.74 |
| #FFFFFF | 13.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2c167f; /* rgb */ color: rgb(44, 22, 127); /* oklch */ color: oklch(31.6% 0.161 281.6);
Tailwind
colors: {
custom: {
50: '#7257a5',
500: '#2c167f',
950: '#000000',
},
}SCSS
$custom: #2c167f; $custom-light: #7257a5; $custom-dark: #000000;
JSON
{
"hex": "#2c167f",
"rgb": {
"r": 44,
"g": 22,
"b": 127
},
"hsl": {
"h": 252.571,
"s": 70.47,
"l": 29.216
},
"oklch": {
"l": 0.31599,
"c": 0.16116,
"h": 281.6
},
"luminance": 0.02642
}Semantic roles & 50–950 ramp
primary
#2C167F
secondary
#9BB43D
accent
#ED3BC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F