#2D0839#2D0839

#2D0839 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.9% C 0.093 H 316.4°. Best body text is #FFFFFF at 17.42:1 contrast (WCAG AA passes).

Color values

HEX#2D0839
RGBrgb(45, 8, 57)
HSLhsl(285, 75%, 13%)
HSVhsv(285, 86%, 22%)
CMYKcmyk(21.1%, 86%, 0%, 77.6%)
CIE-LABlab(9.21, 27.19, -22.83)
CIE-LCHlch(9.21, 35.51, 319.98°)
OKLaboklab(22.94% 0.0675 -0.0643)
OKLCHoklch(22.94% 0.093 316.4)
XYZxyz(1.9074, 1.0270, 3.9679)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0839 #143908
analogous
#140839 #2D0839 #39082C
triadic
#2D0839 #392D08 #08392D
tetradic
#2D0839 #391408 #143908 #082C39
square
#2D0839 #391408 #143908 #082C39
split-complementary
#2D0839 #2C3908 #083914
monochromatic
#15041B #15041B #2D0839 #57106F #8217A4

Accessibility & contrast

On white

17.42
#2D0839 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0839
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0839#FFFFFF#000000##FFFFFF
##2D08391.0017.421.2117.42
#FFFFFF17.421.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183A
Deuteranopia (green-blind)
#081B38
Tritanopia (blue-blind)
#2C1220
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2d0839;
/* rgb */ color: rgb(45, 8, 57);
/* oklch */ color: oklch(22.9% 0.093 316.4);
Tailwind
colors: {
  custom: {
    50: '#684c70',
    500: '#2d0839',
    950: '#000000',
  },
}
SCSS
$custom: #2d0839;
$custom-light: #684c70;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0839",
  "rgb": {
    "r": 45,
    "g": 8,
    "b": 57
  },
  "hsl": {
    "h": 285.306,
    "s": 75.385,
    "l": 12.745
  },
  "oklch": {
    "l": 0.22944,
    "c": 0.0932,
    "h": 316.4
  },
  "luminance": 0.01027
}

Semantic roles & 50–950 ramp

primary
#2D0839
secondary
#397825
accent
#F23664
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2D0839

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

Preview Lab → · Contrast checker → · Palette generator →

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