#2D1489#2D1489

#2D1489 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.175 H 280.4°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#2D1489
RGBrgb(45, 20, 137)
HSLhsl(253, 75%, 31%)
HSVhsv(253, 85%, 54%)
CMYKcmyk(67.2%, 85.4%, 0%, 46.3%)
CIE-LABlab(19.49, 44.40, -59.47)
CIE-LCHlch(19.49, 74.21, 306.74°)
OKLaboklab(32.62% 0.0315 -0.1716)
OKLCHoklch(32.62% 0.175 280.4)
XYZxyz(5.8463, 2.8639, 23.9068)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1489 #708914
analogous
#143589 #2D1489 #671489
triadic
#2D1489 #892D14 #14892D
tetradic
#2D1489 #891435 #708914 #148967
square
#2D1489 #891435 #708914 #148967
split-complementary
#2D1489 #896714 #358914
monochromatic
#0A041E #1B0C54 #2D1489 #3F1CBE #5A36E2

Accessibility & contrast

On white

13.35
#2D1489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2D1489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1489
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1489#FFFFFF#000000##FFFFFF
##2D14891.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002B87
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1489;
/* rgb */ color: rgb(45, 20, 137);
/* oklch */ color: oklch(32.6% 0.175 280.4);
Tailwind
colors: {
  custom: {
    50: '#7457ad',
    500: '#2d1489',
    950: '#000000',
  },
}
SCSS
$custom: #2d1489;
$custom-light: #7457ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1489",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 137
  },
  "hsl": {
    "h": 252.821,
    "s": 74.522,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32616,
    "c": 0.17451,
    "h": 280.4
  },
  "luminance": 0.02864
}

Semantic roles & 50–950 ramp

primary
#2D1489
secondary
#A2BD3C
accent
#F137C9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2D1489

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

Preview Lab → · Contrast checker → · Palette generator →

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