#2D0841#2D0841

#2D0841 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.6% C 0.102 H 310.2°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#2D0841
RGBrgb(45, 8, 65)
HSLhsl(279, 78%, 14%)
HSVhsv(279, 88%, 25%)
CMYKcmyk(30.8%, 87.7%, 0%, 74.5%)
CIE-LABlab(9.90, 29.17, -27.45)
CIE-LCHlch(9.90, 40.05, 316.74°)
OKLaboklab(23.65% 0.0658 -0.0779)
OKLCHoklch(23.65% 0.102 310.2)
XYZxyz(2.1230, 1.1133, 5.1030)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0841 #1C4108
analogous
#110841 #2D0841 #410839
triadic
#2D0841 #412D08 #08412D
tetradic
#2D0841 #411108 #1C4108 #083941
square
#2D0841 #411108 #1C4108 #083941
split-complementary
#2D0841 #394108 #084111
monochromatic
#13031B #13031B #2D0841 #530F77 #7815AE

Accessibility & contrast

On white

17.18
#2D0841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0841
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0841#FFFFFF#000000##FFFFFF
##2D08411.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A43
Deuteranopia (green-blind)
#001C40
Tritanopia (blue-blind)
#2A1624
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2d0841;
/* rgb */ color: rgb(45, 8, 65);
/* oklch */ color: oklch(23.6% 0.102 310.2);
Tailwind
colors: {
  custom: {
    50: '#694c76',
    500: '#2d0841',
    950: '#000000',
  },
}
SCSS
$custom: #2d0841;
$custom-light: #694c76;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0841",
  "rgb": {
    "r": 45,
    "g": 8,
    "b": 65
  },
  "hsl": {
    "h": 278.947,
    "s": 78.082,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23645,
    "c": 0.10196,
    "h": 310.2
  },
  "luminance": 0.01113
}

Semantic roles & 50–950 ramp

primary
#2D0841
secondary
#457F25
accent
#F53377
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2D0841

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

Preview Lab → · Contrast checker → · Palette generator →

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