#2D1571#2D1571

#2D1571 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.145 H 285.7°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#2D1571
RGBrgb(45, 21, 113)
HSLhsl(256, 69%, 26%)
HSVhsv(256, 81%, 44%)
CMYKcmyk(60.2%, 81.4%, 0%, 55.7%)
CIE-LABlab(16.92, 36.67, -48.41)
CIE-LCHlch(16.92, 60.73, 307.14°)
OKLaboklab(30.03% 0.0392 -0.1394)
OKLCHoklch(30.03% 0.145 285.7)
XYZxyz(4.3301, 2.2862, 15.8327)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1571 #597115
analogous
#152B71 #2D1571 #5B1571
triadic
#2D1571 #712D15 #15712D
tetradic
#2D1571 #71152B #597115 #15715B
square
#2D1571 #71152B #597115 #15715B
split-complementary
#2D1571 #715B15 #2B7115
monochromatic
#0A051A #180B3D #2D1571 #421FA5 #5729D7

Accessibility & contrast

On white

14.41
#2D1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2D1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1571
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1571#FFFFFF#000000##FFFFFF
##2D15711.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#093043
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d1571;
/* rgb */ color: rgb(45, 21, 113);
/* oklch */ color: oklch(30.0% 0.145 285.7);
Tailwind
colors: {
  custom: {
    50: '#6f569b',
    500: '#2d1571',
    950: '#000000',
  },
}
SCSS
$custom: #2d1571;
$custom-light: #6f569b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1571",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 255.652,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30033,
    "c": 0.14482,
    "h": 285.7
  },
  "luminance": 0.02286
}

Semantic roles & 50–950 ramp

primary
#2D1571
secondary
#8BA73B
accent
#EB3CBE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1571

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

Preview Lab → · Contrast checker → · Palette generator →

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