#2D1576#2D1576

#2D1576 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.151 H 284.4°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#2D1576
RGBrgb(45, 21, 118)
HSLhsl(255, 70%, 27%)
HSVhsv(255, 82%, 46%)
CMYKcmyk(61.9%, 82.2%, 0%, 53.7%)
CIE-LABlab(17.47, 38.20, -50.74)
CIE-LCHlch(17.47, 63.51, 306.98°)
OKLaboklab(30.58% 0.0375 -0.1462)
OKLCHoklch(30.58% 0.151 284.4)
XYZxyz(4.6194, 2.4019, 17.3562)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1576 #5E7615
analogous
#152E76 #2D1576 #5D1576
triadic
#2D1576 #762D15 #15762D
tetradic
#2D1576 #76152E #5E7615 #15765D
square
#2D1576 #76152E #5E7615 #15765D
split-complementary
#2D1576 #765D15 #2E7615
monochromatic
#0A051A #190C42 #2D1576 #411EAA #572CD9

Accessibility & contrast

On white

14.19
#2D1576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2D1576 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1576
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1576#FFFFFF#000000##FFFFFF
##2D15761.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d1576;
/* rgb */ color: rgb(45, 21, 118);
/* oklch */ color: oklch(30.6% 0.151 284.4);
Tailwind
colors: {
  custom: {
    50: '#70569f',
    500: '#2d1576',
    950: '#000000',
  },
}
SCSS
$custom: #2d1576;
$custom-light: #70569f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1576",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 254.845,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30577,
    "c": 0.15097,
    "h": 284.4
  },
  "luminance": 0.02402
}

Semantic roles & 50–950 ramp

primary
#2D1576
secondary
#90AC3B
accent
#ED3BC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2D1576

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

Preview Lab → · Contrast checker → · Palette generator →

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