#2C117E#2C117E
#2C117E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 31.0% C 0.164 H 282.4°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).
Color values
| HEX | #2C117E |
|---|---|
| RGB | rgb(44, 17, 126) |
| HSL | hsl(255, 76%, 28%) |
| HSV | hsv(255, 87%, 49%) |
| CMYK | cmyk(65.1%, 86.5%, 0%, 50.6%) |
| CIE-LAB | lab(17.66, 42.33, -55.55) |
| CIE-LCH | lch(17.66, 69.84, 307.30°) |
| OKLab | oklab(30.95% 0.0353 -0.1602) |
| OKLCH | oklch(30.95% 0.164 282.4) |
| XYZ | xyz(5.0039, 2.4424, 19.9424) |
| Luminance | 0.0244 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.59
Midnight Blue
#191970
ΔE00 4.04
Navy
#000080
ΔE00 4.08
Royal
#0C1793
ΔE00 4.15
Darkblue
#00008B
ΔE00 4.15
Deep Blue
#040273
ΔE00 4.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C117E #637E11
analogous
#112D7E #2C117E #62117E
triadic
#2C117E #7E2C11 #117E2C
tetradic
#2C117E #7E112D #637E11 #117E62
square
#2C117E #7E112D #637E11 #117E62
split-complementary
#2C117E #7E6211 #2D7E11
monochromatic
#09041B #190A48 #2C117E #3F18B4 #5627E2
Accessibility & contrast
On white
14.11
#2C117E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2C117E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C117E
14.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C117E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C117E | 1.00 | 14.11 | 1.49 | 14.11 |
| #FFFFFF | 14.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2c117e; /* rgb */ color: rgb(44, 17, 126); /* oklch */ color: oklch(31.0% 0.164 282.4);
Tailwind
colors: {
custom: {
50: '#7255a5',
500: '#2c117e',
950: '#000000',
},
}SCSS
$custom: #2c117e; $custom-light: #7255a5; $custom-dark: #000000;
JSON
{
"hex": "#2c117e",
"rgb": {
"r": 44,
"g": 17,
"b": 126
},
"hsl": {
"h": 254.862,
"s": 76.224,
"l": 28.039
},
"oklch": {
"l": 0.30952,
"c": 0.16409,
"h": 282.4
},
"luminance": 0.02443
}Semantic roles & 50–950 ramp
primary
#2C117E
secondary
#95B437
accent
#F335C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F