#2C155B#2C155B

#2C155B is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.117 H 292.0°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#2C155B
RGBrgb(44, 21, 91)
HSLhsl(260, 63%, 22%)
HSVhsv(260, 77%, 36%)
CMYKcmyk(51.6%, 76.9%, 0%, 64.3%)
CIE-LABlab(14.55, 29.67, -37.80)
CIE-LCHlch(14.55, 48.05, 308.13°)
OKLaboklab(27.65% 0.0438 -0.1084)
OKLCHoklch(27.65% 0.117 292)
XYZxyz(3.1947, 1.8270, 10.0798)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C155B #445B15
analogous
#15215B #2C155B #4F155B
triadic
#2C155B #5B2C15 #155B2C
tetradic
#2C155B #5B1521 #445B15 #155B4F
square
#2C155B #5B1521 #445B15 #155B4F
split-complementary
#2C155B #5B4F15 #215B15
monochromatic
#0C0619 #140A29 #2C155B #44208D #5C2CBE

Accessibility & contrast

On white

15.38
#2C155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2C155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C155B
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C155B#FFFFFF#000000##FFFFFF
##2C155B1.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00235A
Tritanopia (blue-blind)
#1D2736
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c155b;
/* rgb */ color: rgb(44, 21, 91);
/* oklch */ color: oklch(27.7% 0.117 292.0);
Tailwind
colors: {
  custom: {
    50: '#6b558a',
    500: '#2c155b',
    950: '#000000',
  },
}
SCSS
$custom: #2c155b;
$custom-light: #6b558a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c155b",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 259.714,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27652,
    "c": 0.1169,
    "h": 292
  },
  "luminance": 0.01827
}

Semantic roles & 50–950 ramp

primary
#2C155B
secondary
#759239
accent
#E642B0
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C155B

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

Preview Lab → · Contrast checker → · Palette generator →

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