#2C174F#2C174F
#2C174F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.098 H 296.4°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).
Color values
| HEX | #2C174F |
|---|---|
| RGB | rgb(44, 23, 79) |
| HSL | hsl(263, 55%, 20%) |
| HSV | hsv(263, 71%, 31%) |
| CMYK | cmyk(44.3%, 70.9%, 0%, 69%) |
| CIE-LAB | lab(13.90, 24.73, -30.73) |
| CIE-LCH | lch(13.90, 39.44, 308.83°) |
| OKLab | oklab(26.85% 0.0436 -0.0876) |
| OKLCH | oklch(26.85% 0.098 296.4) |
| XYZ | xyz(2.7560, 1.7127, 7.5810) |
| Luminance | 0.0171 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.77
Midnight Purple
#280137
ΔE00 6.56
Dark Purple
#35063E
ΔE00 6.57
Dark Violet
#34013F
ΔE00 6.77
Deep Purple
#36013F
ΔE00 7.08
Night Blue
#040348
ΔE00 7.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C174F #3A4F17
analogous
#171E4F #2C174F #48174F
triadic
#2C174F #4F2C17 #174F2C
tetradic
#2C174F #4F171E #3A4F17 #174F48
square
#2C174F #4F171E #3A4F17 #174F48
split-complementary
#2C174F #4F4817 #1E4F17
monochromatic
#0D0718 #120920 #2C174F #46257E #6133AE
Accessibility & contrast
On white
15.64
#2C174F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.34
#2C174F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C174F
15.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C174F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C174F | 1.00 | 15.64 | 1.34 | 15.64 |
| #FFFFFF | 15.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#00234E
Tritanopia (blue-blind)
#232430
Achromatopsia (no color)
#232323
Design tokens & code
CSS
--color: #2c174f; /* rgb */ color: rgb(44, 23, 79); /* oklch */ color: oklch(26.8% 0.098 296.4);
Tailwind
colors: {
custom: {
50: '#695581',
500: '#2c174f',
950: '#000000',
},
}SCSS
$custom: #2c174f; $custom-light: #695581; $custom-dark: #000000;
JSON
{
"hex": "#2c174f",
"rgb": {
"r": 44,
"g": 23,
"b": 79
},
"hsl": {
"h": 262.5,
"s": 54.902,
"l": 20
},
"oklch": {
"l": 0.26847,
"c": 0.09786,
"h": 296.4
},
"luminance": 0.01713
}Semantic roles & 50–950 ramp
primary
#2C174F
secondary
#6A863C
accent
#DE4AA6
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C