#2D052A#2D052A

#2D052A is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.4% C 0.083 H 331.3°. Best body text is #FFFFFF at 18.00:1 contrast (WCAG AA passes).

Color values

HEX#2D052A
RGBrgb(45, 5, 42)
HSLhsl(305, 80%, 10%)
HSVhsv(305, 89%, 18%)
CMYKcmyk(0%, 88.9%, 6.7%, 82.4%)
CIE-LABlab(7.53, 25.49, -14.47)
CIE-LCHlch(7.53, 29.31, 330.42°)
OKLaboklab(21.38% 0.0729 -0.0399)
OKLCHoklch(21.38% 0.083 331.3)
XYZxyz(1.5544, 0.8337, 2.2691)
Luminance0.0083 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D052A #052D08
analogous
#1C052D #2D052A #2D0516
triadic
#2D052A #2A2D05 #052A2D
tetradic
#2D052A #2D1C05 #052D08 #05162D
square
#2D052A #2D1C05 #052D08 #05162D
split-complementary
#2D052A #162D05 #052D1C
monochromatic
#1C031A #1C031A #2D052A #640B5D #9B1191

Accessibility & contrast

On white

18.00
#2D052A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#2D052A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D052A
18.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D052A#FFFFFF#000000##FFFFFF
##2D052A1.0018.001.1718.00
#FFFFFF18.001.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03132B
Deuteranopia (green-blind)
#111929
Tritanopia (blue-blind)
#2F0916
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2d052a;
/* rgb */ color: rgb(45, 5, 42);
/* oklch */ color: oklch(21.4% 0.083 331.3);
Tailwind
colors: {
  custom: {
    50: '#684963',
    500: '#2d052a',
    950: '#000000',
  },
}
SCSS
$custom: #2d052a;
$custom-light: #684963;
$custom-dark: #000000;
JSON
{
  "hex": "#2d052a",
  "rgb": {
    "r": 45,
    "g": 5,
    "b": 42
  },
  "hsl": {
    "h": 304.5,
    "s": 80,
    "l": 9.804
  },
  "oklch": {
    "l": 0.21377,
    "c": 0.08311,
    "h": 331.3
  },
  "luminance": 0.00834
}

Semantic roles & 50–950 ramp

primary
#2D052A
secondary
#1F6F25
accent
#F64031
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#060105
muted
#7A7779

Preview Lab

Preview with #2D052A

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

Preview Lab → · Contrast checker → · Palette generator →

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