#2D0740#2D0740

#2D0740 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.4% C 0.102 H 311.1°. Best body text is #FFFFFF at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#2D0740
RGBrgb(45, 7, 64)
HSLhsl(280, 80%, 14%)
HSVhsv(280, 89%, 25%)
CMYKcmyk(29.7%, 89.1%, 0%, 74.9%)
CIE-LABlab(9.64, 29.41, -27.16)
CIE-LCHlch(9.64, 40.03, 317.27°)
OKLaboklab(23.43% 0.0673 -0.077)
OKLCHoklch(23.43% 0.102 311.1)
XYZxyz(2.0834, 1.0801, 4.9482)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0740 #1A4007
analogous
#110740 #2D0740 #400737
triadic
#2D0740 #402D07 #07402D
tetradic
#2D0740 #401107 #1A4007 #073740
square
#2D0740 #401107 #1A4007 #073740
split-complementary
#2D0740 #374007 #074011
monochromatic
#13031C #13031C #2D0740 #540D77 #7B13AE

Accessibility & contrast

On white

17.27
#2D0740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2D0740 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0740
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0740#FFFFFF#000000##FFFFFF
##2D07401.0017.271.2217.27
#FFFFFF17.271.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#001B3F
Tritanopia (blue-blind)
#2A1523
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2d0740;
/* rgb */ color: rgb(45, 7, 64);
/* oklch */ color: oklch(23.4% 0.102 311.1);
Tailwind
colors: {
  custom: {
    50: '#694c75',
    500: '#2d0740',
    950: '#000000',
  },
}
SCSS
$custom: #2d0740;
$custom-light: #694c75;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0740",
  "rgb": {
    "r": 45,
    "g": 7,
    "b": 64
  },
  "hsl": {
    "h": 280,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.23434,
    "c": 0.10223,
    "h": 311.1
  },
  "luminance": 0.0108
}

Semantic roles & 50–950 ramp

primary
#2D0740
secondary
#427F24
accent
#F73173
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2D0740

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

Preview Lab → · Contrast checker → · Palette generator →

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