#2C154F#2C154F
#2C154F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.101 H 297.2°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).
Color values
| HEX | #2C154F |
|---|---|
| RGB | rgb(44, 21, 79) |
| HSL | hsl(264, 58%, 20%) |
| HSV | hsv(264, 73%, 31%) |
| CMYK | cmyk(44.3%, 73.4%, 0%, 69%) |
| CIE-LAB | lab(13.45, 25.96, -31.46) |
| CIE-LCH | lch(13.45, 40.78, 309.53°) |
| OKLab | oklab(26.52% 0.0461 -0.0898) |
| OKLCH | oklch(26.52% 0.101 297.2) |
| XYZ | xyz(2.7178, 1.6363, 7.5683) |
| Luminance | 0.0164 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.32
Midnight Purple
#280137
ΔE00 6.21
Dark Purple
#35063E
ΔE00 6.28
Dark Violet
#34013F
ΔE00 6.37
Deep Purple
#36013F
ΔE00 6.70
Night Blue
#040348
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C154F #384F15
analogous
#151B4F #2C154F #49154F
triadic
#2C154F #4F2C15 #154F2C
tetradic
#2C154F #4F151B #384F15 #154F49
square
#2C154F #4F151B #384F15 #154F49
split-complementary
#2C154F #4F4915 #1B4F15
monochromatic
#0D0618 #11081F #2C154F #47227F #622FB0
Accessibility & contrast
On white
15.82
#2C154F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.33
#2C154F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C154F
15.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C154F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C154F | 1.00 | 15.82 | 1.33 | 15.82 |
| #FFFFFF | 15.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#232330
Achromatopsia (no color)
#222222
Design tokens & code
CSS
--color: #2c154f; /* rgb */ color: rgb(44, 21, 79); /* oklch */ color: oklch(26.5% 0.101 297.2);
Tailwind
colors: {
custom: {
50: '#695481',
500: '#2c154f',
950: '#000000',
},
}SCSS
$custom: #2c154f; $custom-light: #695481; $custom-dark: #000000;
JSON
{
"hex": "#2c154f",
"rgb": {
"r": 44,
"g": 21,
"b": 79
},
"hsl": {
"h": 263.793,
"s": 58,
"l": 19.608
},
"oklch": {
"l": 0.26522,
"c": 0.10093,
"h": 297.2
},
"luminance": 0.01636
}Semantic roles & 50–950 ramp
primary
#2C154F
secondary
#688739
accent
#E147A4
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06030A
muted
#7A787C