#2C1552#2C1552

#2C1552 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.105 H 295.8°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#2C1552
RGBrgb(44, 21, 82)
HSLhsl(263, 59%, 20%)
HSVhsv(263, 74%, 32%)
CMYKcmyk(46.3%, 74.4%, 0%, 67.8%)
CIE-LABlab(13.71, 26.88, -33.08)
CIE-LCHlch(13.71, 42.62, 309.10°)
OKLaboklab(26.8% 0.0456 -0.0945)
OKLCHoklch(26.8% 0.105 295.8)
XYZxyz(2.8295, 1.6809, 8.1564)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1552 #3B5215
analogous
#151C52 #2C1552 #4A1552
triadic
#2C1552 #522C15 #15522C
tetradic
#2C1552 #52151C #3B5215 #15524A
square
#2C1552 #52151C #3B5215 #15524A
split-complementary
#2C1552 #524A15 #1C5215
monochromatic
#0D0618 #120921 #2C1552 #462183 #602EB3

Accessibility & contrast

On white

15.72
#2C1552 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1552
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1552#FFFFFF#000000##FFFFFF
##2C15521.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#002251
Tritanopia (blue-blind)
#222431
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c1552;
/* rgb */ color: rgb(44, 21, 82);
/* oklch */ color: oklch(26.8% 0.105 295.8);
Tailwind
colors: {
  custom: {
    50: '#695483',
    500: '#2c1552',
    950: '#000000',
  },
}
SCSS
$custom: #2c1552;
$custom-light: #695483;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1552",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 82
  },
  "hsl": {
    "h": 262.623,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26796,
    "c": 0.10497,
    "h": 295.8
  },
  "luminance": 0.01681
}

Semantic roles & 50–950 ramp

primary
#2C1552
secondary
#6B8A39
accent
#E245A7
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2C1552

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

Preview Lab → · Contrast checker → · Palette generator →

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