#2C117F#2C117F
#2C117F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.165 H 282.2°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2C117F |
|---|---|
| RGB | rgb(44, 17, 127) |
| HSL | hsl(255, 76%, 28%) |
| HSV | hsv(255, 87%, 50%) |
| CMYK | cmyk(65.4%, 86.6%, 0%, 50.2%) |
| CIE-LAB | lab(17.77, 42.62, -55.99) |
| CIE-LCH | lch(17.77, 70.37, 307.28°) |
| OKLab | oklab(31.07% 0.035 -0.1615) |
| OKLCH | oklch(31.07% 0.165 282.2) |
| XYZ | xyz(5.0687, 2.4683, 20.2839) |
| Luminance | 0.0247 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.56
Royal
#0C1793
ΔE00 4.03
Navy
#000080
ΔE00 4.06
Darkblue
#00008B
ΔE00 4.07
Midnight Blue
#191970
ΔE00 4.12
Deep Blue
#040273
ΔE00 4.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C117F #647F11
analogous
#112D7F #2C117F #63117F
triadic
#2C117F #7F2C11 #117F2C
tetradic
#2C117F #7F112D #647F11 #117F63
square
#2C117F #7F112D #647F11 #117F63
split-complementary
#2C117F #7F6311 #2D7F11
monochromatic
#09041B #190A49 #2C117F #3F18B5 #5628E2
Accessibility & contrast
On white
14.06
#2C117F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2C117F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C117F
14.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C117F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C117F | 1.00 | 14.06 | 1.49 | 14.06 |
| #FFFFFF | 14.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2c117f; /* rgb */ color: rgb(44, 17, 127); /* oklch */ color: oklch(31.1% 0.165 282.2);
Tailwind
colors: {
custom: {
50: '#7255a5',
500: '#2c117f',
950: '#000000',
},
}SCSS
$custom: #2c117f; $custom-light: #7255a5; $custom-dark: #000000;
JSON
{
"hex": "#2c117f",
"rgb": {
"r": 44,
"g": 17,
"b": 127
},
"hsl": {
"h": 254.727,
"s": 76.389,
"l": 28.235
},
"oklch": {
"l": 0.31068,
"c": 0.16526,
"h": 282.2
},
"luminance": 0.02469
}Semantic roles & 50–950 ramp
primary
#2C117F
secondary
#96B537
accent
#F335C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F