#2D1573#2D1573

#2D1573 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.147 H 285.2°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#2D1573
RGBrgb(45, 21, 115)
HSLhsl(255, 69%, 27%)
HSVhsv(255, 82%, 45%)
CMYKcmyk(60.9%, 81.7%, 0%, 54.9%)
CIE-LABlab(17.14, 37.28, -49.34)
CIE-LCHlch(17.14, 61.84, 307.07°)
OKLaboklab(30.25% 0.0385 -0.1422)
OKLCHoklch(30.25% 0.147 285.2)
XYZxyz(4.4439, 2.3318, 16.4322)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1573 #5B7315
analogous
#152C73 #2D1573 #5C1573
triadic
#2D1573 #732D15 #15732D
tetradic
#2D1573 #73152C #5B7315 #15735C
square
#2D1573 #73152C #5B7315 #15735C
split-complementary
#2D1573 #735C15 #2C7315
monochromatic
#0A051A #190C3F #2D1573 #411EA7 #572AD8

Accessibility & contrast

On white

14.32
#2D1573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1573
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1573#FFFFFF#000000##FFFFFF
##2D15731.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002771
Tritanopia (blue-blind)
#063144
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d1573;
/* rgb */ color: rgb(45, 21, 115);
/* oklch */ color: oklch(30.2% 0.147 285.2);
Tailwind
colors: {
  custom: {
    50: '#70569c',
    500: '#2d1573',
    950: '#000000',
  },
}
SCSS
$custom: #2d1573;
$custom-light: #70569c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1573",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 115
  },
  "hsl": {
    "h": 255.319,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30249,
    "c": 0.14728,
    "h": 285.2
  },
  "luminance": 0.02332
}

Semantic roles & 50–950 ramp

primary
#2D1573
secondary
#8DA93B
accent
#EC3CBF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1573

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

Preview Lab → · Contrast checker → · Palette generator →

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