#2D0940#2D0940

#2D0940 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.7% C 0.100 H 310.7°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#2D0940
RGBrgb(45, 9, 64)
HSLhsl(279, 75%, 14%)
HSVhsv(279, 86%, 25%)
CMYKcmyk(29.7%, 85.9%, 0%, 74.9%)
CIE-LABlab(9.98, 28.43, -26.61)
CIE-LCHlch(9.98, 38.94, 316.89°)
OKLaboklab(23.67% 0.0649 -0.0754)
OKLCHoklch(23.67% 0.1 310.7)
XYZxyz(2.1051, 1.1235, 4.9555)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0940 #1C4009
analogous
#120940 #2D0940 #400938
triadic
#2D0940 #402D09 #09402D
tetradic
#2D0940 #401209 #1C4009 #093840
square
#2D0940 #401209 #1C4009 #093840
split-complementary
#2D0940 #384009 #094012
monochromatic
#13041B #13041B #2D0940 #531176 #7818AB

Accessibility & contrast

On white

17.15
#2D0940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0940
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0940#FFFFFF#000000##FFFFFF
##2D09401.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d0940;
/* rgb */ color: rgb(45, 9, 64);
/* oklch */ color: oklch(23.7% 0.100 310.7);
Tailwind
colors: {
  custom: {
    50: '#694d75',
    500: '#2d0940',
    950: '#000000',
  },
}
SCSS
$custom: #2d0940;
$custom-light: #694d75;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0940",
  "rgb": {
    "r": 45,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 279.273,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23673,
    "c": 0.09951,
    "h": 310.7
  },
  "luminance": 0.01123
}

Semantic roles & 50–950 ramp

primary
#2D0940
secondary
#457E27
accent
#F23677
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2D0940

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

Preview Lab → · Contrast checker → · Palette generator →

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