#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
RGBrgb(44, 16, 127)
HSLhsl(255, 78%, 28%)
HSVhsv(255, 87%, 50%)
CMYKcmyk(65.4%, 87.4%, 0%, 50.2%)
CIE-LABlab(17.64, 43.03, -56.22)
CIE-LCHlch(17.64, 70.80, 307.43°)
OKLaboklab(30.97% 0.0354 -0.1622)
OKLCHoklch(30.97% 0.166 282.3)
XYZxyz(5.0536, 2.4380, 20.2788)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

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
##2C107F1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.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

Preview Lab

Preview with #2C107F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2C107F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva