#2D1577#2D1577

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

Color values

HEX#2D1577
RGBrgb(45, 21, 119)
HSLhsl(255, 70%, 27%)
HSVhsv(255, 82%, 47%)
CMYKcmyk(62.2%, 82.4%, 0%, 53.3%)
CIE-LABlab(17.58, 38.51, -51.20)
CIE-LCHlch(17.58, 64.06, 306.95°)
OKLaboklab(30.69% 0.0372 -0.1476)
OKLCHoklch(30.69% 0.152 284.1)
XYZxyz(4.6791, 2.4258, 17.6709)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1577 #5F7715
analogous
#152E77 #2D1577 #5E1577
triadic
#2D1577 #772D15 #15772D
tetradic
#2D1577 #77152E #5F7715 #15775E
square
#2D1577 #77152E #5F7715 #15775E
split-complementary
#2D1577 #775E15 #2E7715
monochromatic
#0A051A #190C43 #2D1577 #411EAB #572DDA

Accessibility & contrast

On white

14.14
#2D1577 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1577
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1577#FFFFFF#000000##FFFFFF
##2D15771.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002875
Tritanopia (blue-blind)
#003246
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d1577;
/* rgb */ color: rgb(45, 21, 119);
/* oklch */ color: oklch(30.7% 0.152 284.1);
Tailwind
colors: {
  custom: {
    50: '#71569f',
    500: '#2d1577',
    950: '#000000',
  },
}
SCSS
$custom: #2d1577;
$custom-light: #71569f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1577",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 119
  },
  "hsl": {
    "h": 254.694,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30687,
    "c": 0.15219,
    "h": 284.1
  },
  "luminance": 0.02426
}

Semantic roles & 50–950 ramp

primary
#2D1577
secondary
#91AD3B
accent
#ED3BC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2D1577

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

Preview Lab → · Contrast checker → · Palette generator →

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