#2A0C28#2A0C28

#2A0C28 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.7% C 0.066 H 330.2°. Best body text is #FFFFFF at 17.77:1 contrast (WCAG AA passes).

Color values

HEX#2A0C28
RGBrgb(42, 12, 40)
HSLhsl(304, 56%, 11%)
HSVhsv(304, 71%, 16%)
CMYKcmyk(0%, 71.4%, 4.8%, 83.5%)
CIE-LABlab(8.20, 20.22, -11.95)
CIE-LCHlch(8.20, 23.49, 329.43°)
OKLaboklab(21.71% 0.0572 -0.0328)
OKLCHoklch(21.71% 0.066 330.2)
XYZxyz(1.4693, 0.9085, 2.1050)
Luminance0.0091 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0C28 #0C2A0E
analogous
#1D0C2A #2A0C28 #2A0C19
triadic
#2A0C28 #282A0C #0C282A
tetradic
#2A0C28 #2A1D0C #0C2A0E #0C192A
square
#2A0C28 #2A1D0C #0C2A0E #0C192A
split-complementary
#2A0C28 #192A0C #0C2A1D
monochromatic
#180717 #180717 #2A0C28 #5A1A55 #892783

Accessibility & contrast

On white

17.77
#2A0C28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#2A0C28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0C28
17.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0C28#FFFFFF#000000##FFFFFF
##2A0C281.0017.771.1817.77
#FFFFFF17.771.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1529
Deuteranopia (green-blind)
#141927
Tritanopia (blue-blind)
#2C0F18
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2a0c28;
/* rgb */ color: rgb(42, 12, 40);
/* oklch */ color: oklch(21.7% 0.066 330.2);
Tailwind
colors: {
  custom: {
    50: '#654d62',
    500: '#2a0c28',
    950: '#000000',
  },
}
SCSS
$custom: #2a0c28;
$custom-light: #654d62;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0c28",
  "rgb": {
    "r": 42,
    "g": 12,
    "b": 40
  },
  "hsl": {
    "h": 304,
    "s": 55.556,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21713,
    "c": 0.06595,
    "h": 330.2
  },
  "luminance": 0.00908
}

Semantic roles & 50–950 ramp

primary
#2A0C28
secondary
#2D6530
accent
#DF5349
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#060105
muted
#7A7779

Preview Lab

Preview with #2A0C28

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

Preview Lab → · Contrast checker → · Palette generator →

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