#2D0C31#2D0C31

#2D0C31 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.8% C 0.078 H 323.2°. Best body text is #FFFFFF at 17.38:1 contrast (WCAG AA passes).

Color values

HEX#2D0C31
RGBrgb(45, 12, 49)
HSLhsl(294, 61%, 12%)
HSVhsv(294, 76%, 19%)
CMYKcmyk(8.2%, 75.5%, 0%, 80.8%)
CIE-LABlab(9.34, 23.25, -16.80)
CIE-LCHlch(9.34, 28.68, 324.14°)
OKLaboklab(22.84% 0.0625 -0.0467)
OKLCHoklch(22.84% 0.078 323.2)
XYZxyz(1.7680, 1.0427, 3.0133)
Luminance0.0104 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0C31 #10310C
analogous
#1B0C31 #2D0C31 #310C23
triadic
#2D0C31 #312D0C #0C312D
tetradic
#2D0C31 #311B0C #10310C #0C2331
square
#2D0C31 #311B0C #10310C #0C2331
split-complementary
#2D0C31 #23310C #0C311B
monochromatic
#170619 #170619 #2D0C31 #5A1862 #872493

Accessibility & contrast

On white

17.38
#2D0C31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0C31
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0C31#FFFFFF#000000##FFFFFF
##2D0C311.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051832
Deuteranopia (green-blind)
#111B30
Tritanopia (blue-blind)
#2E121D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2d0c31;
/* rgb */ color: rgb(45, 12, 49);
/* oklch */ color: oklch(22.8% 0.078 323.2);
Tailwind
colors: {
  custom: {
    50: '#674d69',
    500: '#2d0c31',
    950: '#000000',
  },
}
SCSS
$custom: #2d0c31;
$custom-light: #674d69;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0c31",
  "rgb": {
    "r": 45,
    "g": 12,
    "b": 49
  },
  "hsl": {
    "h": 293.514,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.22842,
    "c": 0.07802,
    "h": 323.2
  },
  "luminance": 0.01043
}

Semantic roles & 50–950 ramp

primary
#2D0C31
secondary
#336D2C
accent
#E44455
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2D0C31

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

Preview Lab → · Contrast checker → · Palette generator →

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