#2C115B#2C115B

#2C115B is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.122 H 293.0°. Best body text is #FFFFFF at 15.69:1 contrast (WCAG AA passes).

Color values

HEX#2C115B
RGBrgb(44, 17, 91)
HSLhsl(262, 69%, 21%)
HSVhsv(262, 81%, 36%)
CMYKcmyk(51.6%, 81.3%, 0%, 64.3%)
CIE-LABlab(13.78, 31.86, -39.07)
CIE-LCHlch(13.78, 50.41, 309.20°)
OKLaboklab(27.11% 0.0477 -0.1121)
OKLCHoklch(27.11% 0.122 293)
XYZxyz(3.1270, 1.6916, 10.0573)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C115B #405B11
analogous
#111B5B #2C115B #51115B
triadic
#2C115B #5B2C11 #115B2C
tetradic
#2C115B #5B111B #405B11 #115B51
square
#2C115B #5B111B #405B11 #115B51
split-complementary
#2C115B #5B5111 #1B5B11
monochromatic
#0C051A #130727 #2C115B #451B8F #5E24C2

Accessibility & contrast

On white

15.69
#2C115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C115B
15.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C115B#FFFFFF#000000##FFFFFF
##2C115B1.0015.691.3415.69
#FFFFFF15.691.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#00225A
Tritanopia (blue-blind)
#1D2535
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c115b;
/* rgb */ color: rgb(44, 17, 91);
/* oklch */ color: oklch(27.1% 0.122 293.0);
Tailwind
colors: {
  custom: {
    50: '#6b528a',
    500: '#2c115b',
    950: '#000000',
  },
}
SCSS
$custom: #2c115b;
$custom-light: #6b528a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c115b",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 261.892,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27106,
    "c": 0.12181,
    "h": 293
  },
  "luminance": 0.01692
}

Semantic roles & 50–950 ramp

primary
#2C115B
secondary
#719434
accent
#EB3CAC
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C115B

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

Preview Lab → · Contrast checker → · Palette generator →

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