#2C137E#2C137E
#2C137E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.163 H 282.2°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).
Color values
| HEX | #2C137E |
|---|---|
| RGB | rgb(44, 19, 126) |
| HSL | hsl(254, 74%, 28%) |
| HSV | hsv(254, 85%, 49%) |
| CMYK | cmyk(65.1%, 84.9%, 0%, 50.6%) |
| CIE-LAB | lab(17.95, 41.46, -55.06) |
| CIE-LCH | lch(17.95, 68.93, 306.98°) |
| OKLab | oklab(31.15% 0.0343 -0.1588) |
| OKLCH | oklch(31.15% 0.163 282.2) |
| XYZ | xyz(5.0363, 2.5072, 19.9532) |
| Luminance | 0.0251 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.87
Midnight Blue
#191970
ΔE00 3.83
Royal
#0C1793
ΔE00 4.06
Navy
#000080
ΔE00 4.30
Darkblue
#00008B
ΔE00 4.35
Deep Blue
#040273
ΔE00 4.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C137E #657E13
analogous
#132F7E #2C137E #61137E
triadic
#2C137E #7E2C13 #137E2C
tetradic
#2C137E #7E132F #657E13 #137E61
square
#2C137E #7E132F #657E13 #137E61
split-complementary
#2C137E #7E6113 #2F7E13
monochromatic
#09041B #190B49 #2C137E #3F1BB3 #562CDF
Accessibility & contrast
On white
13.99
#2C137E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2C137E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C137E
13.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C137E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C137E | 1.00 | 13.99 | 1.50 | 13.99 |
| #FFFFFF | 13.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2c137e; /* rgb */ color: rgb(44, 19, 126); /* oklch */ color: oklch(31.2% 0.163 282.2);
Tailwind
colors: {
custom: {
50: '#7256a5',
500: '#2c137e',
950: '#000000',
},
}SCSS
$custom: #2c137e; $custom-light: #7256a5; $custom-dark: #000000;
JSON
{
"hex": "#2c137e",
"rgb": {
"r": 44,
"g": 19,
"b": 126
},
"hsl": {
"h": 254.019,
"s": 73.793,
"l": 28.431
},
"oklch": {
"l": 0.31154,
"c": 0.16252,
"h": 282.2
},
"luminance": 0.02508
}Semantic roles & 50–950 ramp
primary
#2C137E
secondary
#97B439
accent
#F037C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F