#2D1476#2D1476

#2D1476 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.152 H 284.6°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#2D1476
RGBrgb(45, 20, 118)
HSLhsl(255, 71%, 27%)
HSVhsv(255, 83%, 46%)
CMYKcmyk(61.9%, 83.1%, 0%, 53.7%)
CIE-LABlab(17.30, 38.69, -51.01)
CIE-LCHlch(17.30, 64.03, 307.18°)
OKLaboklab(30.46% 0.0382 -0.147)
OKLCHoklch(30.46% 0.152 284.6)
XYZxyz(4.6014, 2.3659, 17.3502)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1476 #5D7614
analogous
#142C76 #2D1476 #5E1476
triadic
#2D1476 #762D14 #14762D
tetradic
#2D1476 #76142C #5D7614 #14765E
square
#2D1476 #76142C #5D7614 #14765E
split-complementary
#2D1476 #765E14 #2C7614
monochromatic
#0A041A #190B42 #2D1476 #411DAA #572ADB

Accessibility & contrast

On white

14.25
#2D1476 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2D1476 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1476
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1476#FFFFFF#000000##FFFFFF
##2D14761.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002774
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d1476;
/* rgb */ color: rgb(45, 20, 118);
/* oklch */ color: oklch(30.5% 0.152 284.6);
Tailwind
colors: {
  custom: {
    50: '#70569f',
    500: '#2d1476',
    950: '#000000',
  },
}
SCSS
$custom: #2d1476;
$custom-light: #70569f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1476",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 118
  },
  "hsl": {
    "h": 255.306,
    "s": 71.014,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3046,
    "c": 0.15191,
    "h": 284.6
  },
  "luminance": 0.02366
}

Semantic roles & 50–950 ramp

primary
#2D1476
secondary
#8FAC3A
accent
#EE3AC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2D1476

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

Preview Lab → · Contrast checker → · Palette generator →

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