#2C126F#2C126F
#2C126F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.145 H 286.1°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).
Color values
| HEX | #2C126F |
|---|---|
| RGB | rgb(44, 18, 111) |
| HSL | hsl(257, 72%, 25%) |
| HSV | hsv(257, 84%, 44%) |
| CMYK | cmyk(60.4%, 83.8%, 0%, 56.5%) |
| CIE-LAB | lab(16.08, 37.40, -48.50) |
| CIE-LCH | lch(16.08, 61.25, 307.64°) |
| OKLab | oklab(29.36% 0.0403 -0.1397) |
| OKLCH | oklch(29.36% 0.145 286.1) |
| XYZ | xyz(4.1234, 2.1155, 15.2269) |
| Luminance | 0.0212 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.40
Indigo (survey)
#380282
ΔE00 4.03
Dark Royal Blue
#02066F
ΔE00 4.34
Deep Blue
#040273
ΔE00 4.57
Darkblue (survey)
#030764
ΔE00 4.63
Dark Indigo
#1F0954
ΔE00 4.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C126F #556F12
analogous
#12276F #2C126F #5A126F
triadic
#2C126F #6F2C12 #126F2C
tetradic
#2C126F #6F1227 #556F12 #126F5A
square
#2C126F #6F1227 #556F12 #126F5A
split-complementary
#2C126F #6F5A12 #276F12
monochromatic
#0A041A #17093A #2C126F #411BA4 #5623D8
Accessibility & contrast
On white
14.76
#2C126F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#2C126F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C126F
14.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C126F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C126F | 1.00 | 14.76 | 1.42 | 14.76 |
| #FFFFFF | 14.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00256D
Tritanopia (blue-blind)
#092E41
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #2c126f; /* rgb */ color: rgb(44, 18, 111); /* oklch */ color: oklch(29.4% 0.145 286.1);
Tailwind
colors: {
custom: {
50: '#6f5499',
500: '#2c126f',
950: '#000000',
},
}SCSS
$custom: #2c126f; $custom-light: #6f5499; $custom-dark: #000000;
JSON
{
"hex": "#2c126f",
"rgb": {
"r": 44,
"g": 18,
"b": 111
},
"hsl": {
"h": 256.774,
"s": 72.093,
"l": 25.294
},
"oklch": {
"l": 0.29357,
"c": 0.14537,
"h": 286.1
},
"luminance": 0.02116
}Semantic roles & 50–950 ramp
primary
#2C126F
secondary
#87A637
accent
#EF39BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E