#2D1572#2D1572

#2D1572 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.146 H 285.4°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#2D1572
RGBrgb(45, 21, 114)
HSLhsl(255, 69%, 26%)
HSVhsv(255, 82%, 45%)
CMYKcmyk(60.5%, 81.6%, 0%, 55.3%)
CIE-LABlab(17.03, 36.97, -48.88)
CIE-LCHlch(17.03, 61.29, 307.11°)
OKLaboklab(30.14% 0.0388 -0.1408)
OKLCHoklch(30.14% 0.146 285.4)
XYZxyz(4.3867, 2.3089, 16.1308)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1572 #5A7215
analogous
#152C72 #2D1572 #5C1572
triadic
#2D1572 #722D15 #15722D
tetradic
#2D1572 #72152C #5A7215 #15725C
square
#2D1572 #72152C #5A7215 #15725C
split-complementary
#2D1572 #725C15 #2C7215
monochromatic
#0A051A #190B3E #2D1572 #411FA6 #572AD8

Accessibility & contrast

On white

14.37
#2D1572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2D1572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1572
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1572#FFFFFF#000000##FFFFFF
##2D15721.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#083043
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d1572;
/* rgb */ color: rgb(45, 21, 114);
/* oklch */ color: oklch(30.1% 0.146 285.4);
Tailwind
colors: {
  custom: {
    50: '#70569c',
    500: '#2d1572',
    950: '#000000',
  },
}
SCSS
$custom: #2d1572;
$custom-light: #70569c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1572",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 255.484,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30141,
    "c": 0.14606,
    "h": 285.4
  },
  "luminance": 0.02309
}

Semantic roles & 50–950 ramp

primary
#2D1572
secondary
#8CA83B
accent
#EC3CBE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1572

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

Preview Lab → · Contrast checker → · Palette generator →

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