#2C0942#2C0942

#2C0942 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.7% C 0.101 H 308.3°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#2C0942
RGBrgb(44, 9, 66)
HSLhsl(277, 76%, 15%)
HSVhsv(277, 86%, 26%)
CMYKcmyk(33.3%, 86.4%, 0%, 74.1%)
CIE-LABlab(9.99, 28.73, -28.03)
CIE-LCHlch(9.99, 40.14, 315.71°)
OKLaboklab(23.7% 0.0628 -0.0796)
OKLCHoklch(23.7% 0.101 308.3)
XYZxyz(2.1196, 1.1242, 5.2585)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0942 #1F4209
analogous
#100942 #2C0942 #42093C
triadic
#2C0942 #422C09 #09422C
tetradic
#2C0942 #421009 #1F4209 #093C42
square
#2C0942 #421009 #1F4209 #093C42
split-complementary
#2C0942 #3C4209 #094210
monochromatic
#12041B #12041B #2C0942 #501078 #7418AE

Accessibility & contrast

On white

17.15
#2C0942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2C0942 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0942
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0942#FFFFFF#000000##FFFFFF
##2C09421.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001C41
Tritanopia (blue-blind)
#281725
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2c0942;
/* rgb */ color: rgb(44, 9, 66);
/* oklch */ color: oklch(23.7% 0.101 308.3);
Tailwind
colors: {
  custom: {
    50: '#684d77',
    500: '#2c0942',
    950: '#000000',
  },
}
SCSS
$custom: #2c0942;
$custom-light: #684d77;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0942",
  "rgb": {
    "r": 44,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 276.842,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23697,
    "c": 0.10142,
    "h": 308.3
  },
  "luminance": 0.01124
}

Semantic roles & 50–950 ramp

primary
#2C0942
secondary
#498027
accent
#F3357E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2C0942

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

Preview Lab → · Contrast checker → · Palette generator →

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