#2D1578#2D1578

#2D1578 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.153 H 283.9°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#2D1578
RGBrgb(45, 21, 120)
HSLhsl(255, 70%, 28%)
HSVhsv(255, 83%, 47%)
CMYKcmyk(62.5%, 82.5%, 0%, 52.9%)
CIE-LABlab(17.69, 38.82, -51.66)
CIE-LCHlch(17.69, 64.61, 306.92°)
OKLaboklab(30.8% 0.0369 -0.1489)
OKLCHoklch(30.8% 0.153 283.9)
XYZxyz(4.7395, 2.4500, 17.9888)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1578 #607815
analogous
#152F78 #2D1578 #5E1578
triadic
#2D1578 #782D15 #15782D
tetradic
#2D1578 #78152F #607815 #15785E
square
#2D1578 #78152F #607815 #15785E
split-complementary
#2D1578 #785E15 #2F7815
monochromatic
#0A051A #190C44 #2D1578 #411EAC #572DDA

Accessibility & contrast

On white

14.09
#2D1578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2D1578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1578
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1578#FFFFFF#000000##FFFFFF
##2D15781.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002876
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d1578;
/* rgb */ color: rgb(45, 21, 120);
/* oklch */ color: oklch(30.8% 0.153 283.9);
Tailwind
colors: {
  custom: {
    50: '#7156a0',
    500: '#2d1578',
    950: '#000000',
  },
}
SCSS
$custom: #2d1578;
$custom-light: #7156a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1578",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 254.545,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30797,
    "c": 0.15341,
    "h": 283.9
  },
  "luminance": 0.0245
}

Semantic roles & 50–950 ramp

primary
#2D1578
secondary
#92AE3B
accent
#ED3BC2
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D1578

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

Preview Lab → · Contrast checker → · Palette generator →

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