#2D1580#2D1580

#2D1580 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.163 H 282.1°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#2D1580
RGBrgb(45, 21, 128)
HSLhsl(253, 72%, 29%)
HSVhsv(253, 84%, 50%)
CMYKcmyk(64.8%, 83.6%, 0%, 49.8%)
CIE-LABlab(18.59, 41.25, -55.27)
CIE-LCHlch(18.59, 68.97, 306.74°)
OKLaboklab(31.69% 0.0342 -0.1594)
OKLCHoklch(31.69% 0.163 282.1)
XYZxyz(5.2454, 2.6523, 20.6534)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1580 #688015
analogous
#153380 #2D1580 #631580
triadic
#2D1580 #802D15 #15802D
tetradic
#2D1580 #801533 #688015 #158063
square
#2D1580 #801533 #688015 #158063
split-complementary
#2D1580 #806315 #338015
monochromatic
#09041A #1B0C4B #2D1580 #3F1EB5 #5832DD

Accessibility & contrast

On white

13.72
#2D1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2D1580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1580
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1580#FFFFFF#000000##FFFFFF
##2D15801.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d1580;
/* rgb */ color: rgb(45, 21, 128);
/* oklch */ color: oklch(31.7% 0.163 282.1);
Tailwind
colors: {
  custom: {
    50: '#7257a6',
    500: '#2d1580',
    950: '#000000',
  },
}
SCSS
$custom: #2d1580;
$custom-light: #7257a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1580",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 253.458,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3169,
    "c": 0.16306,
    "h": 282.1
  },
  "luminance": 0.02653
}

Semantic roles & 50–950 ramp

primary
#2D1580
secondary
#9AB53C
accent
#EF39C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D1580

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

Preview Lab → · Contrast checker → · Palette generator →

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