#2D1584#2D1584

#2D1584 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.168 H 281.3°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#2D1584
RGBrgb(45, 21, 132)
HSLhsl(253, 73%, 30%)
HSVhsv(253, 84%, 52%)
CMYKcmyk(65.9%, 84.1%, 0%, 48.2%)
CIE-LABlab(19.05, 42.46, -57.04)
CIE-LCHlch(19.05, 71.11, 306.66°)
OKLaboklab(32.14% 0.0328 -0.1646)
OKLCHoklch(32.14% 0.168 281.3)
XYZxyz(5.5139, 2.7597, 22.0674)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1584 #6C8415
analogous
#153484 #2D1584 #651584
triadic
#2D1584 #842D15 #15842D
tetradic
#2D1584 #841534 #6C8415 #158465
square
#2D1584 #841534 #6C8415 #158465
split-complementary
#2D1584 #846515 #348415
monochromatic
#09041A #1B0D4F #2D1584 #3F1DB9 #5935DF

Accessibility & contrast

On white

13.53
#2D1584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2D1584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1584
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1584#FFFFFF#000000##FFFFFF
##2D15841.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002A82
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d1584;
/* rgb */ color: rgb(45, 21, 132);
/* oklch */ color: oklch(32.1% 0.168 281.3);
Tailwind
colors: {
  custom: {
    50: '#7357a9',
    500: '#2d1584',
    950: '#000000',
  },
}
SCSS
$custom: #2d1584;
$custom-light: #7357a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1584",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 132
  },
  "hsl": {
    "h": 252.973,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.32144,
    "c": 0.16784,
    "h": 281.3
  },
  "luminance": 0.0276
}

Semantic roles & 50–950 ramp

primary
#2D1584
secondary
#9EB93C
accent
#EF39C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2D1584

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

Preview Lab → · Contrast checker → · Palette generator →

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