#2D1E76#2D1E76

#2D1E76 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.141 H 282.6°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#2D1E76
RGBrgb(45, 30, 118)
HSLhsl(250, 59%, 29%)
HSVhsv(250, 75%, 46%)
CMYKcmyk(61.9%, 74.6%, 0%, 53.7%)
CIE-LABlab(19.20, 33.29, -47.89)
CIE-LCHlch(19.20, 58.32, 304.81°)
OKLaboklab(31.79% 0.0308 -0.138)
OKLCHoklch(31.79% 0.141 282.6)
XYZxyz(4.8155, 2.7941, 17.4216)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1E76 #67761E
analogous
#1E3B76 #2D1E76 #591E76
triadic
#2D1E76 #762D1E #1E762D
tetradic
#2D1E76 #761E3B #67761E #1E7659
square
#2D1E76 #761E3B #67761E #1E7659
split-complementary
#2D1E76 #76591E #3B761E
monochromatic
#090618 #1A1245 #2D1E76 #402AA7 #5840CE

Accessibility & contrast

On white

13.47
#2D1E76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1E76
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1E76#FFFFFF#000000##FFFFFF
##2D1E761.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002C74
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1e76;
/* rgb */ color: rgb(45, 30, 118);
/* oklch */ color: oklch(31.8% 0.141 282.6);
Tailwind
colors: {
  custom: {
    50: '#705b9e',
    500: '#2d1e76',
    950: '#000000',
  },
}
SCSS
$custom: #2d1e76;
$custom-light: #705b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1e76",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 118
  },
  "hsl": {
    "h": 250.227,
    "s": 59.459,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31794,
    "c": 0.14138,
    "h": 282.6
  },
  "luminance": 0.02794
}

Semantic roles & 50–950 ramp

primary
#2D1E76
secondary
#99AA46
accent
#E345C8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1E76

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

Preview Lab → · Contrast checker → · Palette generator →

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