#2D0742#2D0742

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

Color values

HEX#2D0742
RGBrgb(45, 7, 66)
HSLhsl(279, 81%, 14%)
HSVhsv(279, 89%, 26%)
CMYKcmyk(31.8%, 89.4%, 0%, 74.1%)
CIE-LABlab(9.82, 29.91, -28.29)
CIE-LCHlch(9.82, 41.17, 316.60°)
OKLaboklab(23.62% 0.0667 -0.0803)
OKLCHoklch(23.62% 0.104 309.7)
XYZxyz(2.1413, 1.1032, 5.2533)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0742 #1C4207
analogous
#100742 #2D0742 #42073A
triadic
#2D0742 #422D07 #07422D
tetradic
#2D0742 #421007 #1C4207 #073A42
square
#2D0742 #421007 #1C4207 #073A42
split-complementary
#2D0742 #3A4207 #074210
monochromatic
#13031C #13031C #2D0742 #530D79 #7813B1

Accessibility & contrast

On white

17.20
#2D0742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0742
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0742#FFFFFF#000000##FFFFFF
##2D07421.0017.201.2217.20
#FFFFFF17.201.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001C41
Tritanopia (blue-blind)
#2A1625
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2d0742;
/* rgb */ color: rgb(45, 7, 66);
/* oklch */ color: oklch(23.6% 0.104 309.7);
Tailwind
colors: {
  custom: {
    50: '#694c77',
    500: '#2d0742',
    950: '#000000',
  },
}
SCSS
$custom: #2d0742;
$custom-light: #694c77;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0742",
  "rgb": {
    "r": 45,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 278.644,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23619,
    "c": 0.1044,
    "h": 309.7
  },
  "luminance": 0.01103
}

Semantic roles & 50–950 ramp

primary
#2D0742
secondary
#458124
accent
#F73177
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2D0742

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

Preview Lab → · Contrast checker → · Palette generator →

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