#2C137B#2C137B
#2C137B is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.159 H 282.9°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).
Color values
| HEX | #2C137B |
|---|---|
| RGB | rgb(44, 19, 123) |
| HSL | hsl(254, 73%, 28%) |
| HSV | hsv(254, 85%, 48%) |
| CMYK | cmyk(64.2%, 84.6%, 0%, 51.8%) |
| CIE-LAB | lab(17.60, 40.56, -53.73) |
| CIE-LCH | lch(17.60, 67.31, 307.05°) |
| OKLab | oklab(30.81% 0.0354 -0.1549) |
| OKLCH | oklch(30.81% 0.159 282.9) |
| XYZ | xyz(4.8456, 2.4309, 18.9489) |
| Luminance | 0.0243 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.01
Midnight Blue
#191970
ΔE00 3.60
Navy
#000080
ΔE00 4.40
Royal
#0C1793
ΔE00 4.44
Deep Blue
#040273
ΔE00 4.45
Dark Royal Blue
#02066F
ΔE00 4.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C137B #627B13
analogous
#132E7B #2C137B #60137B
triadic
#2C137B #7B2C13 #137B2C
tetradic
#2C137B #7B132E #627B13 #137B60
square
#2C137B #7B132E #627B13 #137B60
split-complementary
#2C137B #7B6013 #2E7B13
monochromatic
#09041B #190B46 #2C137B #3F1BB0 #562ADE
Accessibility & contrast
On white
14.13
#2C137B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2C137B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C137B
14.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C137B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C137B | 1.00 | 14.13 | 1.49 | 14.13 |
| #FFFFFF | 14.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2c137b; /* rgb */ color: rgb(44, 19, 123); /* oklch */ color: oklch(30.8% 0.159 282.9);
Tailwind
colors: {
custom: {
50: '#7155a2',
500: '#2c137b',
950: '#000000',
},
}SCSS
$custom: #2c137b; $custom-light: #7155a2; $custom-dark: #000000;
JSON
{
"hex": "#2c137b",
"rgb": {
"r": 44,
"g": 19,
"b": 123
},
"hsl": {
"h": 254.423,
"s": 73.239,
"l": 27.843
},
"oklch": {
"l": 0.30812,
"c": 0.15894,
"h": 282.9
},
"luminance": 0.02431
}Semantic roles & 50–950 ramp
primary
#2C137B
secondary
#94B139
accent
#F038C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F