#2A0C2D#2A0C2D

#2A0C2D is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.0% C 0.072 H 324.0°. Best body text is #FFFFFF at 17.66:1 contrast (WCAG AA passes).

Color values

HEX#2A0C2D
RGBrgb(42, 12, 45)
HSLhsl(295, 58%, 11%)
HSVhsv(295, 73%, 18%)
CMYKcmyk(6.7%, 73.3%, 0%, 82.4%)
CIE-LABlab(8.52, 21.37, -15.18)
CIE-LCHlch(8.52, 26.21, 324.60°)
OKLaboklab(22.05% 0.0579 -0.0421)
OKLCHoklch(22.05% 0.072 324)
XYZxyz(1.5599, 0.9447, 2.5823)
Luminance0.0095 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0C2D #0F2D0C
analogous
#190C2D #2A0C2D #2D0C1F
triadic
#2A0C2D #2D2A0C #0C2D2A
tetradic
#2A0C2D #2D190C #0F2D0C #0C1F2D
square
#2A0C2D #2D190C #0F2D0C #0C1F2D
split-complementary
#2A0C2D #1F2D0C #0C2D19
monochromatic
#170618 #170618 #2A0C2D #57195D #84268E

Accessibility & contrast

On white

17.66
#2A0C2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#2A0C2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0C2D
17.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0C2D#FFFFFF#000000##FFFFFF
##2A0C2D1.0017.661.1917.66
#FFFFFF17.661.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07162E
Deuteranopia (green-blind)
#111A2C
Tritanopia (blue-blind)
#2B111A
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2a0c2d;
/* rgb */ color: rgb(42, 12, 45);
/* oklch */ color: oklch(22.0% 0.072 324.0);
Tailwind
colors: {
  custom: {
    50: '#654d66',
    500: '#2a0c2d',
    950: '#000000',
  },
}
SCSS
$custom: #2a0c2d;
$custom-light: #654d66;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0c2d",
  "rgb": {
    "r": 42,
    "g": 12,
    "b": 45
  },
  "hsl": {
    "h": 294.545,
    "s": 57.895,
    "l": 11.176
  },
  "oklch": {
    "l": 0.22048,
    "c": 0.07155,
    "h": 324
  },
  "luminance": 0.00945
}

Semantic roles & 50–950 ramp

primary
#2A0C2D
secondary
#32692C
accent
#E14755
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2A0C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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