#2D0C39#2D0C39

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

Color values

HEX#2D0C39
RGBrgb(45, 12, 57)
HSLhsl(284, 65%, 14%)
HSVhsv(284, 79%, 22%)
CMYKcmyk(21.1%, 78.9%, 0%, 77.6%)
CIE-LABlab(9.93, 25.18, -21.69)
CIE-LCHlch(9.93, 33.24, 319.26°)
OKLaboklab(23.45% 0.0623 -0.061)
OKLCHoklch(23.45% 0.087 315.6)
XYZxyz(1.9521, 1.1163, 3.9827)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0C39 #18390C
analogous
#160C39 #2D0C39 #390C2E
triadic
#2D0C39 #392D0C #0C392D
tetradic
#2D0C39 #39160C #18390C #0C2E39
square
#2D0C39 #39160C #18390C #0C2E39
split-complementary
#2D0C39 #2E390C #0C3916
monochromatic
#140519 #140519 #2D0C39 #55176C #7D219E

Accessibility & contrast

On white

17.17
#2D0C39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0C39
17.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0C39#FFFFFF#000000##FFFFFF
##2D0C391.0017.171.2217.17
#FFFFFF17.171.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193A
Deuteranopia (green-blind)
#0B1C38
Tritanopia (blue-blind)
#2C1521
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2d0c39;
/* rgb */ color: rgb(45, 12, 57);
/* oklch */ color: oklch(23.4% 0.087 315.6);
Tailwind
colors: {
  custom: {
    50: '#684e70',
    500: '#2d0c39',
    950: '#000000',
  },
}
SCSS
$custom: #2d0c39;
$custom-light: #684e70;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0c39",
  "rgb": {
    "r": 45,
    "g": 12,
    "b": 57
  },
  "hsl": {
    "h": 284,
    "s": 65.217,
    "l": 13.529
  },
  "oklch": {
    "l": 0.2345,
    "c": 0.0872,
    "h": 315.6
  },
  "luminance": 0.01116
}

Semantic roles & 50–950 ramp

primary
#2D0C39
secondary
#3F752C
accent
#E8406D
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2D0C39

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

Preview Lab → · Contrast checker → · Palette generator →

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