#2D0C28#2D0C28

#2D0C28 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.2% C 0.068 H 334.0°. Best body text is #FFFFFF at 17.58:1 contrast (WCAG AA passes).

Color values

HEX#2D0C28
RGBrgb(45, 12, 40)
HSLhsl(309, 58%, 11%)
HSVhsv(309, 73%, 18%)
CMYKcmyk(0%, 73.3%, 11.1%, 82.4%)
CIE-LABlab(8.77, 21.27, -11.01)
CIE-LCHlch(8.77, 23.95, 332.62°)
OKLaboklab(22.24% 0.0615 -0.03)
OKLCHoklch(22.24% 0.068 334)
XYZxyz(1.5967, 0.9742, 2.1110)
Luminance0.0097 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0C28 #0C2D11
analogous
#210C2D #2D0C28 #2D0C17
triadic
#2D0C28 #282D0C #0C282D
tetradic
#2D0C28 #2D210C #0C2D11 #0C172D
square
#2D0C28 #2D210C #0C2D11 #0C172D
split-complementary
#2D0C28 #172D0C #0C2D21
monochromatic
#180615 #180615 #2D0C28 #5D1953 #8E267E

Accessibility & contrast

On white

17.58
#2D0C28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0C28
17.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0C28#FFFFFF#000000##FFFFFF
##2D0C281.0017.581.1917.58
#FFFFFF17.581.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1629
Deuteranopia (green-blind)
#161B27
Tritanopia (blue-blind)
#2F0E18
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2d0c28;
/* rgb */ color: rgb(45, 12, 40);
/* oklch */ color: oklch(22.2% 0.068 334.0);
Tailwind
colors: {
  custom: {
    50: '#674d62',
    500: '#2d0c28',
    950: '#000000',
  },
}
SCSS
$custom: #2d0c28;
$custom-light: #674d62;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0c28",
  "rgb": {
    "r": 45,
    "g": 12,
    "b": 40
  },
  "hsl": {
    "h": 309.091,
    "s": 57.895,
    "l": 11.176
  },
  "oklch": {
    "l": 0.22244,
    "c": 0.06841,
    "h": 334
  },
  "luminance": 0.00974
}

Semantic roles & 50–950 ramp

primary
#2D0C28
secondary
#2C6935
accent
#E15E47
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#060105
muted
#7A7779

Preview Lab

Preview with #2D0C28

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

Preview Lab → · Contrast checker → · Palette generator →

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