#2D1D79#2D1D79

#2D1D79 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.146 H 282.2°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#2D1D79
RGBrgb(45, 29, 121)
HSLhsl(250, 61%, 29%)
HSVhsv(250, 76%, 47%)
CMYKcmyk(62.8%, 76%, 0%, 52.5%)
CIE-LABlab(19.29, 34.86, -49.66)
CIE-LCHlch(19.29, 60.67, 305.07°)
OKLaboklab(31.95% 0.0309 -0.1431)
OKLCHoklch(31.95% 0.146 282.2)
XYZxyz(4.9717, 2.8167, 18.3672)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D79 #69791D
analogous
#1D3B79 #2D1D79 #5B1D79
triadic
#2D1D79 #792D1D #1D792D
tetradic
#2D1D79 #791D3B #69791D #1D795B
square
#2D1D79 #791D3B #69791D #1D795B
split-complementary
#2D1D79 #795B1D #3B791D
monochromatic
#090619 #1B1148 #2D1D79 #3F29AA #593FD1

Accessibility & contrast

On white

13.43
#2D1D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2D1D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D79
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D79#FFFFFF#000000##FFFFFF
##2D1D791.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002C77
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1d79;
/* rgb */ color: rgb(45, 29, 121);
/* oklch */ color: oklch(32.0% 0.146 282.2);
Tailwind
colors: {
  custom: {
    50: '#705ba1',
    500: '#2d1d79',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d79;
$custom-light: #705ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d79",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 250.435,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31953,
    "c": 0.14644,
    "h": 282.2
  },
  "luminance": 0.02817
}

Semantic roles & 50–950 ramp

primary
#2D1D79
secondary
#9BAD45
accent
#E443C8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D1D79

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

Preview Lab → · Contrast checker → · Palette generator →

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