#2C0541#2C0541

#2C0541 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.1% C 0.106 H 309.8°. Best body text is #FFFFFF at 17.42:1 contrast (WCAG AA passes).

Color values

HEX#2C0541
RGBrgb(44, 5, 65)
HSLhsl(279, 86%, 14%)
HSVhsv(279, 92%, 25%)
CMYKcmyk(32.3%, 92.3%, 0%, 74.5%)
CIE-LABlab(9.20, 30.47, -28.59)
CIE-LCHlch(9.20, 41.79, 316.82°)
OKLaboklab(23.12% 0.0678 -0.0812)
OKLCHoklch(23.12% 0.106 309.8)
XYZxyz(2.0469, 1.0257, 5.0902)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0541 #1A4105
analogous
#0E0541 #2C0541 #410538
triadic
#2C0541 #412C05 #05412C
tetradic
#2C0541 #410E05 #1A4105 #053841
square
#2C0541 #410E05 #1A4105 #053841
split-complementary
#2C0541 #384105 #05410E
monochromatic
#13021C #13021C #2C0541 #52097A #790EB3

Accessibility & contrast

On white

17.42
#2C0541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2C0541 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0541
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0541#FFFFFF#000000##FFFFFF
##2C05411.0017.421.2117.42
#FFFFFF17.421.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001843
Deuteranopia (green-blind)
#001A40
Tritanopia (blue-blind)
#291424
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2c0541;
/* rgb */ color: rgb(44, 5, 65);
/* oklch */ color: oklch(23.1% 0.106 309.8);
Tailwind
colors: {
  custom: {
    50: '#684a76',
    500: '#2c0541',
    950: '#000000',
  },
}
SCSS
$custom: #2c0541;
$custom-light: #684a76;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0541",
  "rgb": {
    "r": 44,
    "g": 5,
    "b": 65
  },
  "hsl": {
    "h": 279,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.23121,
    "c": 0.10578,
    "h": 309.8
  },
  "luminance": 0.01026
}

Semantic roles & 50–950 ramp

primary
#2C0541
secondary
#428120
accent
#FC2C75
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2C0541

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

Preview Lab → · Contrast checker → · Palette generator →

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