#2D0840#2D0840

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

Color values

HEX#2D0840
RGBrgb(45, 8, 64)
HSLhsl(280, 78%, 14%)
HSVhsv(280, 88%, 25%)
CMYKcmyk(29.7%, 87.5%, 0%, 74.9%)
CIE-LABlab(9.81, 28.92, -26.89)
CIE-LCHlch(9.81, 39.48, 317.08°)
OKLaboklab(23.55% 0.0661 -0.0762)
OKLCHoklch(23.55% 0.101 310.9)
XYZxyz(2.0943, 1.1018, 4.9518)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0840 #1B4008
analogous
#110840 #2D0840 #400837
triadic
#2D0840 #402D08 #08402D
tetradic
#2D0840 #401108 #1B4008 #083740
square
#2D0840 #401108 #1B4008 #083740
split-complementary
#2D0840 #374008 #084011
monochromatic
#13031B #13031B #2D0840 #530F76 #7A16AD

Accessibility & contrast

On white

17.21
#2D0840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0840
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0840#FFFFFF#000000##FFFFFF
##2D08401.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d0840;
/* rgb */ color: rgb(45, 8, 64);
/* oklch */ color: oklch(23.6% 0.101 310.9);
Tailwind
colors: {
  custom: {
    50: '#694c75',
    500: '#2d0840',
    950: '#000000',
  },
}
SCSS
$custom: #2d0840;
$custom-light: #694c75;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0840",
  "rgb": {
    "r": 45,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 279.643,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.23554,
    "c": 0.10085,
    "h": 310.9
  },
  "luminance": 0.01102
}

Semantic roles & 50–950 ramp

primary
#2D0840
secondary
#447E25
accent
#F43475
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2D0840

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

Preview Lab → · Contrast checker → · Palette generator →

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