#2D1581#2D1581

#2D1581 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.164 H 281.9°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#2D1581
RGBrgb(45, 21, 129)
HSLhsl(253, 72%, 29%)
HSVhsv(253, 84%, 51%)
CMYKcmyk(65.1%, 83.7%, 0%, 49.4%)
CIE-LABlab(18.71, 41.55, -55.71)
CIE-LCHlch(18.71, 69.50, 306.72°)
OKLaboklab(31.8% 0.0338 -0.1607)
OKLCHoklch(31.8% 0.164 281.9)
XYZxyz(5.3116, 2.6788, 21.0018)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1581 #698115
analogous
#153381 #2D1581 #631581
triadic
#2D1581 #812D15 #15812D
tetradic
#2D1581 #811533 #698115 #158163
square
#2D1581 #811533 #698115 #158163
split-complementary
#2D1581 #816315 #338115
monochromatic
#09041A #1B0C4C #2D1581 #3F1EB6 #5933DE

Accessibility & contrast

On white

13.67
#2D1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2D1581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1581
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1581#FFFFFF#000000##FFFFFF
##2D15811.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d1581;
/* rgb */ color: rgb(45, 21, 129);
/* oklch */ color: oklch(31.8% 0.164 281.9);
Tailwind
colors: {
  custom: {
    50: '#7357a7',
    500: '#2d1581',
    950: '#000000',
  },
}
SCSS
$custom: #2d1581;
$custom-light: #7357a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1581",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 253.333,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31803,
    "c": 0.16426,
    "h": 281.9
  },
  "luminance": 0.02679
}

Semantic roles & 50–950 ramp

primary
#2D1581
secondary
#9BB63C
accent
#EF39C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2D1581

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

Preview Lab → · Contrast checker → · Palette generator →

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