#2D0C38#2D0C38

#2D0C38 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.4% C 0.086 H 316.5°. Best body text is #FFFFFF at 17.20:1 contrast (WCAG AA passes).

Color values

HEX#2D0C38
RGBrgb(45, 12, 56)
HSLhsl(285, 65%, 13%)
HSVhsv(285, 79%, 22%)
CMYKcmyk(19.6%, 78.6%, 0%, 78%)
CIE-LABlab(9.85, 24.93, -21.09)
CIE-LCHlch(9.85, 32.66, 319.77°)
OKLaboklab(23.37% 0.0624 -0.0592)
OKLCHoklch(23.37% 0.086 316.5)
XYZxyz(1.9274, 1.1064, 3.8527)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0C38 #17380C
analogous
#170C38 #2D0C38 #380C2D
triadic
#2D0C38 #382D0C #0C382D
tetradic
#2D0C38 #38170C #17380C #0C2D38
square
#2D0C38 #38170C #17380C #0C2D38
split-complementary
#2D0C38 #2D380C #0C3817
monochromatic
#140519 #140519 #2D0C38 #55176A #7E229D

Accessibility & contrast

On white

17.20
#2D0C38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0C38
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0C38#FFFFFF#000000##FFFFFF
##2D0C381.0017.201.2217.20
#FFFFFF17.201.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001939
Deuteranopia (green-blind)
#0C1C37
Tritanopia (blue-blind)
#2C1420
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2d0c38;
/* rgb */ color: rgb(45, 12, 56);
/* oklch */ color: oklch(23.4% 0.086 316.5);
Tailwind
colors: {
  custom: {
    50: '#684e6f',
    500: '#2d0c38',
    950: '#000000',
  },
}
SCSS
$custom: #2d0c38;
$custom-light: #684e6f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0c38",
  "rgb": {
    "r": 45,
    "g": 12,
    "b": 56
  },
  "hsl": {
    "h": 285,
    "s": 64.706,
    "l": 13.333
  },
  "oklch": {
    "l": 0.2337,
    "c": 0.08603,
    "h": 316.5
  },
  "luminance": 0.01106
}

Semantic roles & 50–950 ramp

primary
#2D0C38
secondary
#3E742C
accent
#E8406A
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2D0C38

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

Preview Lab → · Contrast checker → · Palette generator →

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