#2C115C#2C115C

#2C115C is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.2% C 0.123 H 292.6°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#2C115C
RGBrgb(44, 17, 92)
HSLhsl(262, 69%, 21%)
HSVhsv(262, 82%, 36%)
CMYKcmyk(52.2%, 81.5%, 0%, 63.9%)
CIE-LABlab(13.88, 32.16, -39.57)
CIE-LCHlch(13.88, 50.99, 309.10°)
OKLaboklab(27.21% 0.0474 -0.1136)
OKLCHoklch(27.21% 0.123 292.6)
XYZxyz(3.1704, 1.7090, 10.2860)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C115C #415C11
analogous
#111C5C #2C115C #52115C
triadic
#2C115C #5C2C11 #115C2C
tetradic
#2C115C #5C111C #415C11 #115C52
square
#2C115C #5C111C #415C11 #115C52
split-complementary
#2C115C #5C5211 #1C5C11
monochromatic
#0C051A #130728 #2C115C #451B90 #5D24C3

Accessibility & contrast

On white

15.65
#2C115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2C115C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C115C
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C115C#FFFFFF#000000##FFFFFF
##2C115C1.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00225B
Tritanopia (blue-blind)
#1D2636
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c115c;
/* rgb */ color: rgb(44, 17, 92);
/* oklch */ color: oklch(27.2% 0.123 292.6);
Tailwind
colors: {
  custom: {
    50: '#6b528b',
    500: '#2c115c',
    950: '#000000',
  },
}
SCSS
$custom: #2c115c;
$custom-light: #6b528b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c115c",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 261.6,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27208,
    "c": 0.12305,
    "h": 292.6
  },
  "luminance": 0.01709
}

Semantic roles & 50–950 ramp

primary
#2C115C
secondary
#729534
accent
#EC3CAC
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C115C

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

Preview Lab → · Contrast checker → · Palette generator →

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