#2C1554#2C1554

#2C1554 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.108 H 294.9°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#2C1554
RGBrgb(44, 21, 84)
HSLhsl(262, 60%, 21%)
HSVhsv(262, 75%, 33%)
CMYKcmyk(47.6%, 75%, 0%, 67.1%)
CIE-LABlab(13.90, 27.50, -34.14)
CIE-LCHlch(13.90, 43.84, 308.85°)
OKLaboklab(26.98% 0.0453 -0.0977)
OKLCHoklch(26.98% 0.108 294.9)
XYZxyz(2.9067, 1.7118, 8.5631)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1554 #3D5415
analogous
#151D54 #2C1554 #4B1554
triadic
#2C1554 #542C15 #15542C
tetradic
#2C1554 #54151D #3D5415 #15544B
square
#2C1554 #54151D #3D5415 #15544B
split-complementary
#2C1554 #544B15 #1D5415
monochromatic
#0D0618 #120923 #2C1554 #462185 #5F2DB6

Accessibility & contrast

On white

15.64
#2C1554 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1554
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1554#FFFFFF#000000##FFFFFF
##2C15541.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002456
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#212532
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c1554;
/* rgb */ color: rgb(44, 21, 84);
/* oklch */ color: oklch(27.0% 0.108 294.9);
Tailwind
colors: {
  custom: {
    50: '#6a5485',
    500: '#2c1554',
    950: '#000000',
  },
}
SCSS
$custom: #2c1554;
$custom-light: #6a5485;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1554",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 84
  },
  "hsl": {
    "h": 261.905,
    "s": 60,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26982,
    "c": 0.10764,
    "h": 294.9
  },
  "luminance": 0.01712
}

Semantic roles & 50–950 ramp

primary
#2C1554
secondary
#6E8C39
accent
#E345A9
background
#F6F4F8
surface
#EBE8EF
border
#C6C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2C1554

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

Preview Lab → · Contrast checker → · Palette generator →

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