#2C107F#2C107F
#2C107F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 31.0% C 0.166 H 282.3°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).
Color values
| HEX | #2C107F |
|---|---|
| RGB | rgb(44, 16, 127) |
| HSL | hsl(255, 78%, 28%) |
| HSV | hsv(255, 87%, 50%) |
| CMYK | cmyk(65.4%, 87.4%, 0%, 50.2%) |
| CIE-LAB | lab(17.64, 43.03, -56.22) |
| CIE-LCH | lch(17.64, 70.80, 307.43°) |
| OKLab | oklab(30.97% 0.0354 -0.1622) |
| OKLCH | oklch(30.97% 0.166 282.3) |
| XYZ | xyz(5.0536, 2.4380, 20.2788) |
| Luminance | 0.0244 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.44
Navy
#000080
ΔE00 3.96
Darkblue
#00008B
ΔE00 3.99
Royal
#0C1793
ΔE00 4.08
Midnight Blue
#191970
ΔE00 4.22
Deep Blue
#040273
ΔE00 4.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C107F #637F10
analogous
#102C7F #2C107F #63107F
triadic
#2C107F #7F2C10 #107F2C
tetradic
#2C107F #7F102C #637F10 #107F63
square
#2C107F #7F102C #637F10 #107F63
split-complementary
#2C107F #7F6310 #2C7F10
monochromatic
#09031B #190949 #2C107F #3F17B5 #5626E4
Accessibility & contrast
On white
14.12
#2C107F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2C107F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C107F
14.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C107F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C107F | 1.00 | 14.12 | 1.49 | 14.12 |
| #FFFFFF | 14.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2c107f; /* rgb */ color: rgb(44, 16, 127); /* oklch */ color: oklch(31.0% 0.166 282.3);
Tailwind
colors: {
custom: {
50: '#7254a5',
500: '#2c107f',
950: '#000000',
},
}SCSS
$custom: #2c107f; $custom-light: #7254a5; $custom-dark: #000000;
JSON
{
"hex": "#2c107f",
"rgb": {
"r": 44,
"g": 16,
"b": 127
},
"hsl": {
"h": 255.135,
"s": 77.622,
"l": 28.039
},
"oklch": {
"l": 0.30973,
"c": 0.16599,
"h": 282.3
},
"luminance": 0.02438
}Semantic roles & 50–950 ramp
primary
#2C107F
secondary
#95B536
accent
#F434C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F