#2C115D#2C115D

#2C115D is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.124 H 292.2°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#2C115D
RGBrgb(44, 17, 93)
HSLhsl(261, 69%, 22%)
HSVhsv(261, 82%, 36%)
CMYKcmyk(52.7%, 81.7%, 0%, 63.5%)
CIE-LABlab(13.98, 32.46, -40.07)
CIE-LCHlch(13.98, 51.57, 309.01°)
OKLaboklab(27.31% 0.0471 -0.115)
OKLCHoklch(27.31% 0.124 292.2)
XYZxyz(3.2144, 1.7266, 10.5177)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C115D #425D11
analogous
#111C5D #2C115D #52115D
triadic
#2C115D #5D2C11 #115D2C
tetradic
#2C115D #5D111C #425D11 #115D52
square
#2C115D #5D111C #425D11 #115D52
split-complementary
#2C115D #5D5211 #1C5D11
monochromatic
#0C051A #140829 #2C115D #441A91 #5D24C4

Accessibility & contrast

On white

15.61
#2C115D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2C115D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C115D
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C115D#FFFFFF#000000##FFFFFF
##2C115D1.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00225C
Tritanopia (blue-blind)
#1C2636
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c115d;
/* rgb */ color: rgb(44, 17, 93);
/* oklch */ color: oklch(27.3% 0.124 292.2);
Tailwind
colors: {
  custom: {
    50: '#6b528c',
    500: '#2c115d',
    950: '#000000',
  },
}
SCSS
$custom: #2c115d;
$custom-light: #6b528c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c115d",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 93
  },
  "hsl": {
    "h": 261.316,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27311,
    "c": 0.12429,
    "h": 292.2
  },
  "luminance": 0.01727
}

Semantic roles & 50–950 ramp

primary
#2C115D
secondary
#739634
accent
#EC3CAD
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C115D

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

Preview Lab → · Contrast checker → · Palette generator →

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