#2D0540#2D0540

#2D0540 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.2% C 0.105 H 311.5°. Best body text is #FFFFFF at 17.39:1 contrast (WCAG AA passes).

Color values

HEX#2D0540
RGBrgb(45, 5, 64)
HSLhsl(281, 86%, 14%)
HSVhsv(281, 92%, 25%)
CMYKcmyk(29.7%, 92.2%, 0%, 74.9%)
CIE-LABlab(9.29, 30.42, -27.73)
CIE-LCHlch(9.29, 41.16, 317.65°)
OKLaboklab(23.19% 0.0697 -0.0786)
OKLCHoklch(23.19% 0.105 311.5)
XYZxyz(2.0617, 1.0367, 4.9410)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0540 #184005
analogous
#0F0540 #2D0540 #400535
triadic
#2D0540 #402D05 #05402D
tetradic
#2D0540 #400F05 #184005 #053540
square
#2D0540 #400F05 #184005 #053540
split-complementary
#2D0540 #354005 #05400F
monochromatic
#14021C #14021C #2D0540 #550979 #7D0EB2

Accessibility & contrast

On white

17.39
#2D0540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0540
17.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0540#FFFFFF#000000##FFFFFF
##2D05401.0017.391.2117.39
#FFFFFF17.391.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#001B3F
Tritanopia (blue-blind)
#2B1423
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2d0540;
/* rgb */ color: rgb(45, 5, 64);
/* oklch */ color: oklch(23.2% 0.105 311.5);
Tailwind
colors: {
  custom: {
    50: '#694b75',
    500: '#2d0540',
    950: '#000000',
  },
}
SCSS
$custom: #2d0540;
$custom-light: #694b75;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0540",
  "rgb": {
    "r": 45,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 280.678,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.23191,
    "c": 0.10506,
    "h": 311.5
  },
  "luminance": 0.01037
}

Semantic roles & 50–950 ramp

primary
#2D0540
secondary
#3F8120
accent
#FC2C6F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2D0540

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

Preview Lab → · Contrast checker → · Palette generator →

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