#2C0542#2C0542

#2C0542 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.2% C 0.107 H 309.1°. Best body text is #FFFFFF at 17.39:1 contrast (WCAG AA passes).

Color values

HEX#2C0542
RGBrgb(44, 5, 66)
HSLhsl(278, 86%, 14%)
HSVhsv(278, 92%, 26%)
CMYKcmyk(33.3%, 92.4%, 0%, 74.1%)
CIE-LABlab(9.30, 30.72, -29.15)
CIE-LCHlch(9.30, 42.35, 316.50°)
OKLaboklab(23.22% 0.0674 -0.0829)
OKLCHoklch(23.22% 0.107 309.1)
XYZxyz(2.0761, 1.0374, 5.2441)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0542 #1B4205
analogous
#0E0542 #2C0542 #42053A
triadic
#2C0542 #422C05 #05422C
tetradic
#2C0542 #420E05 #1B4205 #053A42
square
#2C0542 #420E05 #1B4205 #053A42
split-complementary
#2C0542 #3A4205 #05420E
monochromatic
#13021C #13021C #2C0542 #52097B #780EB4

Accessibility & contrast

On white

17.39
#2C0542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0542
17.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0542#FFFFFF#000000##FFFFFF
##2C05421.0017.391.2117.39
#FFFFFF17.391.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001944
Deuteranopia (green-blind)
#001B41
Tritanopia (blue-blind)
#291524
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2c0542;
/* rgb */ color: rgb(44, 5, 66);
/* oklch */ color: oklch(23.2% 0.107 309.1);
Tailwind
colors: {
  custom: {
    50: '#694b77',
    500: '#2c0542',
    950: '#000000',
  },
}
SCSS
$custom: #2c0542;
$custom-light: #694b77;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0542",
  "rgb": {
    "r": 44,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 278.361,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.23217,
    "c": 0.10682,
    "h": 309.1
  },
  "luminance": 0.01037
}

Semantic roles & 50–950 ramp

primary
#2C0542
secondary
#448220
accent
#FC2C77
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #2C0542

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

Preview Lab → · Contrast checker → · Palette generator →

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