#2D1589#2D1589

#2D1589 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.174 H 280.3°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#2D1589
RGBrgb(45, 21, 137)
HSLhsl(252, 73%, 31%)
HSVhsv(252, 85%, 54%)
CMYKcmyk(67.2%, 84.7%, 0%, 46.3%)
CIE-LABlab(19.64, 43.96, -59.22)
CIE-LCHlch(19.64, 73.75, 306.59°)
OKLaboklab(32.72% 0.0311 -0.1709)
OKLCHoklch(32.72% 0.174 280.3)
XYZxyz(5.8643, 2.8999, 23.9128)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1589 #718915
analogous
#153789 #2D1589 #671589
triadic
#2D1589 #892D15 #15892D
tetradic
#2D1589 #891537 #718915 #158967
square
#2D1589 #891537 #718915 #158967
split-complementary
#2D1589 #896715 #378915
monochromatic
#0A051F #1C0D54 #2D1589 #3E1DBE #5B38E0

Accessibility & contrast

On white

13.29
#2D1589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2D1589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1589
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1589#FFFFFF#000000##FFFFFF
##2D15891.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002B87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1589;
/* rgb */ color: rgb(45, 21, 137);
/* oklch */ color: oklch(32.7% 0.174 280.3);
Tailwind
colors: {
  custom: {
    50: '#7458ad',
    500: '#2d1589',
    950: '#000000',
  },
}
SCSS
$custom: #2d1589;
$custom-light: #7458ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1589",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 252.414,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32718,
    "c": 0.17374,
    "h": 280.3
  },
  "luminance": 0.029
}

Semantic roles & 50–950 ramp

primary
#2D1589
secondary
#A3BD3D
accent
#F038CA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2D1589

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

Preview Lab → · Contrast checker → · Palette generator →

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