#2C116F#2C116F

#2C116F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.146 H 286.2°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#2C116F
RGBrgb(44, 17, 111)
HSLhsl(257, 73%, 25%)
HSVhsv(257, 85%, 44%)
CMYKcmyk(60.4%, 84.7%, 0%, 56.5%)
CIE-LABlab(15.92, 37.87, -48.76)
CIE-LCHlch(15.92, 61.74, 307.83°)
OKLaboklab(29.24% 0.0409 -0.1404)
OKLCHoklch(29.24% 0.146 286.2)
XYZxyz(4.1075, 2.0838, 15.2216)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C116F #546F11
analogous
#11256F #2C116F #5B116F
triadic
#2C116F #6F2C11 #116F2C
tetradic
#2C116F #6F1125 #546F11 #116F5B
square
#2C116F #6F1125 #546F11 #116F5B
split-complementary
#2C116F #6F5B11 #256F11
monochromatic
#0B041B #17093A #2C116F #4119A4 #5621D9

Accessibility & contrast

On white

14.82
#2C116F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2C116F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C116F
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C116F#FFFFFF#000000##FFFFFF
##2C116F1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00256D
Tritanopia (blue-blind)
#092D41
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c116f;
/* rgb */ color: rgb(44, 17, 111);
/* oklch */ color: oklch(29.2% 0.146 286.2);
Tailwind
colors: {
  custom: {
    50: '#6f5499',
    500: '#2c116f',
    950: '#000000',
  },
}
SCSS
$custom: #2c116f;
$custom-light: #6f5499;
$custom-dark: #000000;
JSON
{
  "hex": "#2c116f",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 111
  },
  "hsl": {
    "h": 257.234,
    "s": 73.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29245,
    "c": 0.14629,
    "h": 286.2
  },
  "luminance": 0.02084
}

Semantic roles & 50–950 ramp

primary
#2C116F
secondary
#86A635
accent
#F038BB
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C116F

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

Preview Lab → · Contrast checker → · Palette generator →

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