#2D0642#2D0642

#2D0642 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.106 H 309.9°. Best body text is #FFFFFF at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#2D0642
RGBrgb(45, 6, 66)
HSLhsl(279, 83%, 14%)
HSVhsv(279, 91%, 26%)
CMYKcmyk(31.8%, 90.9%, 0%, 74.1%)
CIE-LABlab(9.65, 30.41, -28.56)
CIE-LCHlch(9.65, 41.72, 316.79°)
OKLaboklab(23.5% 0.0679 -0.0811)
OKLCHoklch(23.5% 0.106 309.9)
XYZxyz(2.1305, 1.0815, 5.2497)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0642 #1B4206
analogous
#0F0642 #2D0642 #420639
triadic
#2D0642 #422D06 #06422D
tetradic
#2D0642 #420F06 #1B4206 #063942
square
#2D0642 #420F06 #1B4206 #063942
split-complementary
#2D0642 #394206 #06420F
monochromatic
#13031C #13031C #2D0642 #530B7A #7A10B2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D0642#FFFFFF#000000##FFFFFF
##2D06421.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)
#001944
Deuteranopia (green-blind)
#001B41
Tritanopia (blue-blind)
#2A1524
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2d0642;
/* rgb */ color: rgb(45, 6, 66);
/* oklch */ color: oklch(23.5% 0.106 309.9);
Tailwind
colors: {
  custom: {
    50: '#694b77',
    500: '#2d0642',
    950: '#000000',
  },
}
SCSS
$custom: #2d0642;
$custom-light: #694b77;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0642",
  "rgb": {
    "r": 45,
    "g": 6,
    "b": 66
  },
  "hsl": {
    "h": 279,
    "s": 83.333,
    "l": 14.118
  },
  "oklch": {
    "l": 0.235,
    "c": 0.10576,
    "h": 309.9
  },
  "luminance": 0.01081
}

Semantic roles & 50–950 ramp

primary
#2D0642
secondary
#448222
accent
#FA2E75
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2D0642

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

Preview Lab → · Contrast checker → · Palette generator →

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