#2C125F#2C125F
#2C125F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.126 H 291.3°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).
Color values
| HEX | #2C125F |
|---|---|
| RGB | rgb(44, 18, 95) |
| HSL | hsl(260, 68%, 22%) |
| HSV | hsv(260, 81%, 37%) |
| CMYK | cmyk(53.7%, 81.1%, 0%, 62.7%) |
| CIE-LAB | lab(14.37, 32.55, -40.78) |
| CIE-LCH | lch(14.37, 52.17, 308.60°) |
| OKLab | oklab(27.64% 0.0456 -0.1171) |
| OKLCH | oklch(27.64% 0.126 291.3) |
| XYZ | xyz(3.3200, 1.7942, 10.9956) |
| Luminance | 0.0179 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 2.81
Midnight Blue
#191970
ΔE00 4.84
Darkblue (survey)
#030764
ΔE00 5.26
Dark Blue
#00035B
ΔE00 5.66
Dark Royal Blue
#02066F
ΔE00 5.90
Deep Blue
#040273
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C125F #455F12
analogous
#121E5F #2C125F #53125F
triadic
#2C125F #5F2C12 #125F2C
tetradic
#2C125F #5F121E #455F12 #125F53
square
#2C125F #5F121E #455F12 #125F53
split-complementary
#2C125F #5F5312 #1E5F12
monochromatic
#0C051A #14082C #2C125F #441C92 #5C25C6
Accessibility & contrast
On white
15.45
#2C125F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.36
#2C125F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C125F
15.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C125F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C125F | 1.00 | 15.45 | 1.36 | 15.45 |
| #FFFFFF | 15.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#1B2738
Achromatopsia (no color)
#242424
Design tokens & code
CSS
--color: #2c125f; /* rgb */ color: rgb(44, 18, 95); /* oklch */ color: oklch(27.6% 0.126 291.3);
Tailwind
colors: {
custom: {
50: '#6c538d',
500: '#2c125f',
950: '#000000',
},
}SCSS
$custom: #2c125f; $custom-light: #6c538d; $custom-dark: #000000;
JSON
{
"hex": "#2c125f",
"rgb": {
"r": 44,
"g": 18,
"b": 95
},
"hsl": {
"h": 260.26,
"s": 68.142,
"l": 22.157
},
"oklch": {
"l": 0.27645,
"c": 0.12566,
"h": 291.3
},
"luminance": 0.01794
}Semantic roles & 50–950 ramp
primary
#2C125F
secondary
#769736
accent
#EB3DB0
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D