#2C155C#2C155C

#2C155C is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.8% C 0.118 H 291.6°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#2C155C
RGBrgb(44, 21, 92)
HSLhsl(259, 63%, 22%)
HSVhsv(259, 77%, 36%)
CMYKcmyk(52.2%, 77.2%, 0%, 63.9%)
CIE-LABlab(14.65, 29.98, -38.31)
CIE-LCHlch(14.65, 48.65, 308.05°)
OKLaboklab(27.75% 0.0435 -0.1099)
OKLCHoklch(27.75% 0.118 291.6)
XYZxyz(3.2381, 1.8444, 10.3085)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C155C #455C15
analogous
#15215C #2C155C #50155C
triadic
#2C155C #5C2C15 #155C2C
tetradic
#2C155C #5C1521 #455C15 #155C50
square
#2C155C #5C1521 #455C15 #155C50
split-complementary
#2C155C #5C5015 #215C15
monochromatic
#0C0619 #140A2A #2C155C #44208E #5C2CC0

Accessibility & contrast

On white

15.34
#2C155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C155C
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C155C#FFFFFF#000000##FFFFFF
##2C155C1.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00235B
Tritanopia (blue-blind)
#1C2837
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c155c;
/* rgb */ color: rgb(44, 21, 92);
/* oklch */ color: oklch(27.8% 0.118 291.6);
Tailwind
colors: {
  custom: {
    50: '#6b558b',
    500: '#2c155c',
    950: '#000000',
  },
}
SCSS
$custom: #2c155c;
$custom-light: #6b558b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c155c",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 259.437,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27751,
    "c": 0.1182,
    "h": 291.6
  },
  "luminance": 0.01845
}

Semantic roles & 50–950 ramp

primary
#2C155C
secondary
#769339
accent
#E642B1
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C155C

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

Preview Lab → · Contrast checker → · Palette generator →

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