#2C126A#2C126A
#2C126A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.139 H 287.5°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).
Color values
| HEX | #2C126A |
|---|---|
| RGB | rgb(44, 18, 106) |
| HSL | hsl(258, 71%, 24%) |
| HSV | hsv(258, 83%, 42%) |
| CMYK | cmyk(58.5%, 83%, 0%, 58.4%) |
| CIE-LAB | lab(15.53, 35.89, -46.14) |
| CIE-LCH | lch(15.53, 58.45, 307.88°) |
| OKLab | oklab(28.81% 0.042 -0.1328) |
| OKLCH | oklch(28.81% 0.139 287.5) |
| XYZ | xyz(3.8558, 2.0085, 13.8174) |
| Luminance | 0.0201 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.64
Dark Indigo
#1F0954
ΔE00 4.09
Darkblue (survey)
#030764
ΔE00 4.60
Dark Royal Blue
#02066F
ΔE00 4.64
Indigo (survey)
#380282
ΔE00 4.72
Deep Blue
#040273
ΔE00 4.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C126A #506A12
analogous
#12246A #2C126A #58126A
triadic
#2C126A #6A2C12 #126A2C
tetradic
#2C126A #6A1224 #506A12 #126A58
square
#2C126A #6A1224 #506A12 #126A58
split-complementary
#2C126A #6A5812 #246A12
monochromatic
#0B041A #160936 #2C126A #421B9E #5724D3
Accessibility & contrast
On white
14.98
#2C126A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.40
#2C126A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C126A
14.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C126A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C126A | 1.00 | 14.98 | 1.40 | 14.98 |
| #FFFFFF | 14.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002468
Tritanopia (blue-blind)
#112C3E
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #2c126a; /* rgb */ color: rgb(44, 18, 106); /* oklch */ color: oklch(28.8% 0.139 287.5);
Tailwind
colors: {
custom: {
50: '#6e5496',
500: '#2c126a',
950: '#000000',
},
}SCSS
$custom: #2c126a; $custom-light: #6e5496; $custom-dark: #000000;
JSON
{
"hex": "#2c126a",
"rgb": {
"r": 44,
"g": 18,
"b": 106
},
"hsl": {
"h": 257.727,
"s": 70.968,
"l": 24.314
},
"oklch": {
"l": 0.28809,
"c": 0.13928,
"h": 287.5
},
"luminance": 0.02009
}Semantic roles & 50–950 ramp
primary
#2C126A
secondary
#82A236
accent
#EE3AB9
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030D
muted
#7B787E