#2C137C#2C137C
#2C137C is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.160 H 282.6°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).
Color values
| HEX | #2C137C |
|---|---|
| RGB | rgb(44, 19, 124) |
| HSL | hsl(254, 73%, 28%) |
| HSV | hsv(254, 85%, 49%) |
| CMYK | cmyk(64.5%, 84.7%, 0%, 51.4%) |
| CIE-LAB | lab(17.72, 40.86, -54.17) |
| CIE-LCH | lch(17.72, 67.85, 307.02°) |
| OKLab | oklab(30.93% 0.035 -0.1562) |
| OKLCH | oklch(30.93% 0.16 282.6) |
| XYZ | xyz(4.9085, 2.4561, 19.2803) |
| Luminance | 0.0246 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.96
Midnight Blue
#191970
ΔE00 3.67
Royal
#0C1793
ΔE00 4.31
Navy
#000080
ΔE00 4.36
Deep Blue
#040273
ΔE00 4.47
Dark Royal Blue
#02066F
ΔE00 4.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C137C #637C13
analogous
#132E7C #2C137C #60137C
triadic
#2C137C #7C2C13 #137C2C
tetradic
#2C137C #7C132E #637C13 #137C60
square
#2C137C #7C132E #637C13 #137C60
split-complementary
#2C137C #7C6013 #2E7C13
monochromatic
#09041B #190B47 #2C137C #3F1BB1 #562BDF
Accessibility & contrast
On white
14.08
#2C137C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2C137C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C137C
14.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C137C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C137C | 1.00 | 14.08 | 1.49 | 14.08 |
| #FFFFFF | 14.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00287A
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2c137c; /* rgb */ color: rgb(44, 19, 124); /* oklch */ color: oklch(30.9% 0.160 282.6);
Tailwind
colors: {
custom: {
50: '#7156a3',
500: '#2c137c',
950: '#000000',
},
}SCSS
$custom: #2c137c; $custom-light: #7156a3; $custom-dark: #000000;
JSON
{
"hex": "#2c137c",
"rgb": {
"r": 44,
"g": 19,
"b": 124
},
"hsl": {
"h": 254.286,
"s": 73.427,
"l": 28.039
},
"oklch": {
"l": 0.30926,
"c": 0.16013,
"h": 282.6
},
"luminance": 0.02456
}Semantic roles & 50–950 ramp
primary
#2C137C
secondary
#95B239
accent
#F038C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F