#2D1236#2D1236

#2D1236 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.1% C 0.073 H 317.0°. Best body text is #FFFFFF at 16.78:1 contrast (WCAG AA passes).

Color values

HEX#2D1236
RGBrgb(45, 18, 54)
HSLhsl(285, 50%, 14%)
HSVhsv(285, 67%, 21%)
CMYKcmyk(16.7%, 66.7%, 0%, 78.8%)
CIE-LABlab(10.97, 20.96, -17.86)
CIE-LCHlch(10.97, 27.54, 319.57°)
OKLaboklab(24.14% 0.0534 -0.0498)
OKLCHoklch(24.14% 0.073 317)
XYZxyz(1.9643, 1.2569, 3.6285)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1236 #1B3612
analogous
#1B1236 #2D1236 #36122D
triadic
#2D1236 #362D12 #12362D
tetradic
#2D1236 #361B12 #1B3612 #122D36
square
#2D1236 #361B12 #1B3612 #122D36
split-complementary
#2D1236 #2D3612 #12361B
monochromatic
#130817 #130817 #2D1236 #532164 #7A3192

Accessibility & contrast

On white

16.78
#2D1236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2D1236 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1236
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1236#FFFFFF#000000##FFFFFF
##2D12361.0016.781.2516.78
#FFFFFF16.781.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091C37
Deuteranopia (green-blind)
#131E35
Tritanopia (blue-blind)
#2D1821
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2d1236;
/* rgb */ color: rgb(45, 18, 54);
/* oklch */ color: oklch(24.1% 0.073 317.0);
Tailwind
colors: {
  custom: {
    50: '#67516d',
    500: '#2d1236',
    950: '#000000',
  },
}
SCSS
$custom: #2d1236;
$custom-light: #67516d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1236",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 54
  },
  "hsl": {
    "h": 285,
    "s": 50,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24138,
    "c": 0.073,
    "h": 317
  },
  "luminance": 0.01257
}

Semantic roles & 50–950 ramp

primary
#2D1236
secondary
#446F35
accent
#DA4E71
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060207
muted
#7A787A

Preview Lab

Preview with #2D1236

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

Preview Lab → · Contrast checker → · Palette generator →

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