#2C164F#2C164F
#2C164F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.099 H 296.8°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).
Color values
| HEX | #2C164F |
|---|---|
| RGB | rgb(44, 22, 79) |
| HSL | hsl(263, 56%, 20%) |
| HSV | hsv(263, 72%, 31%) |
| CMYK | cmyk(44.3%, 72.2%, 0%, 69%) |
| CIE-LAB | lab(13.67, 25.35, -31.09) |
| CIE-LCH | lch(13.67, 40.12, 309.18°) |
| OKLab | oklab(26.68% 0.0449 -0.0887) |
| OKLCH | oklch(26.68% 0.099 296.8) |
| XYZ | xyz(2.7365, 1.6738, 7.5745) |
| Luminance | 0.0167 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.53
Midnight Purple
#280137
ΔE00 6.38
Dark Purple
#35063E
ΔE00 6.42
Dark Violet
#34013F
ΔE00 6.56
Deep Purple
#36013F
ΔE00 6.88
Night Blue
#040348
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C164F #394F16
analogous
#161C4F #2C164F #49164F
triadic
#2C164F #4F2C16 #164F2C
tetradic
#2C164F #4F161C #394F16 #164F49
square
#2C164F #4F161C #394F16 #164F49
split-complementary
#2C164F #4F4916 #1C4F16
monochromatic
#0D0718 #11091F #2C164F #47237F #6131AF
Accessibility & contrast
On white
15.73
#2C164F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.33
#2C164F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C164F
15.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C164F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C164F | 1.00 | 15.73 | 1.33 | 15.73 |
| #FFFFFF | 15.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#232330
Achromatopsia (no color)
#232323
Design tokens & code
CSS
--color: #2c164f; /* rgb */ color: rgb(44, 22, 79); /* oklch */ color: oklch(26.7% 0.099 296.8);
Tailwind
colors: {
custom: {
50: '#695581',
500: '#2c164f',
950: '#000000',
},
}SCSS
$custom: #2c164f; $custom-light: #695581; $custom-dark: #000000;
JSON
{
"hex": "#2c164f",
"rgb": {
"r": 44,
"g": 22,
"b": 79
},
"hsl": {
"h": 263.158,
"s": 56.436,
"l": 19.804
},
"oklch": {
"l": 0.26683,
"c": 0.0994,
"h": 296.8
},
"luminance": 0.01674
}Semantic roles & 50–950 ramp
primary
#2C164F
secondary
#69863A
accent
#E048A5
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C