#2C116A#2C116A

#2C116A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.140 H 287.7°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#2C116A
RGBrgb(44, 17, 106)
HSLhsl(258, 72%, 24%)
HSVhsv(258, 84%, 42%)
CMYKcmyk(58.5%, 84%, 0%, 58.4%)
CIE-LABlab(15.37, 36.37, -46.41)
CIE-LCHlch(15.37, 58.97, 308.08°)
OKLaboklab(28.69% 0.0427 -0.1336)
OKLCHoklch(28.69% 0.14 287.7)
XYZxyz(3.8399, 1.9768, 13.8121)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C116A #4F6A11
analogous
#11236A #2C116A #59116A
triadic
#2C116A #6A2C11 #116A2C
tetradic
#2C116A #6A1123 #4F6A11 #116A59
square
#2C116A #6A1123 #4F6A11 #116A59
split-complementary
#2C116A #6A5911 #236A11
monochromatic
#0B041A #160935 #2C116A #42199F #5822D3

Accessibility & contrast

On white

15.05
#2C116A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2C116A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C116A
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C116A#FFFFFF#000000##FFFFFF
##2C116A1.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#002468
Tritanopia (blue-blind)
#112B3E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c116a;
/* rgb */ color: rgb(44, 17, 106);
/* oklch */ color: oklch(28.7% 0.140 287.7);
Tailwind
colors: {
  custom: {
    50: '#6e5396',
    500: '#2c116a',
    950: '#000000',
  },
}
SCSS
$custom: #2c116a;
$custom-light: #6e5396;
$custom-dark: #000000;
JSON
{
  "hex": "#2c116a",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 106
  },
  "hsl": {
    "h": 258.202,
    "s": 72.358,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28694,
    "c": 0.14025,
    "h": 287.7
  },
  "luminance": 0.01977
}

Semantic roles & 50–950 ramp

primary
#2C116A
secondary
#81A235
accent
#EF39B8
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2C116A

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

Preview Lab → · Contrast checker → · Palette generator →

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