#2D0440#2D0440

#2D0440 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.1% C 0.107 H 311.7°. Best body text is #FFFFFF at 17.46:1 contrast (WCAG AA passes).

Color values

HEX#2D0440
RGBrgb(45, 4, 64)
HSLhsl(281, 88%, 13%)
HSVhsv(281, 94%, 25%)
CMYKcmyk(29.7%, 93.8%, 0%, 74.9%)
CIE-LABlab(9.12, 30.94, -28.02)
CIE-LCHlch(9.12, 41.74, 317.84°)
OKLaboklab(23.07% 0.0709 -0.0795)
OKLCHoklch(23.07% 0.107 311.7)
XYZxyz(2.0508, 1.0149, 4.9374)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0440 #174004
analogous
#0F0440 #2D0440 #400435
triadic
#2D0440 #402D04 #04402D
tetradic
#2D0440 #400F04 #174004 #043540
square
#2D0440 #400F04 #174004 #043540
split-complementary
#2D0440 #354004 #04400F
monochromatic
#14021D #14021D #2D0440 #55087A #7E0BB3

Accessibility & contrast

On white

17.46
#2D0440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#2D0440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0440
17.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0440#FFFFFF#000000##FFFFFF
##2D04401.0017.461.2017.46
#FFFFFF17.461.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d0440;
/* rgb */ color: rgb(45, 4, 64);
/* oklch */ color: oklch(23.1% 0.107 311.7);
Tailwind
colors: {
  custom: {
    50: '#694a75',
    500: '#2d0440',
    950: '#000000',
  },
}
SCSS
$custom: #2d0440;
$custom-light: #694a75;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0440",
  "rgb": {
    "r": 45,
    "g": 4,
    "b": 64
  },
  "hsl": {
    "h": 281,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23067,
    "c": 0.10651,
    "h": 311.7
  },
  "luminance": 0.01015
}

Semantic roles & 50–950 ramp

primary
#2D0440
secondary
#3E811F
accent
#FE296D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2D0440

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

Preview Lab → · Contrast checker → · Palette generator →

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