#2D1A84#2D1A84

#2D1A84 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.163 H 280.6°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#2D1A84
RGBrgb(45, 26, 132)
HSLhsl(251, 67%, 31%)
HSVhsv(251, 80%, 52%)
CMYKcmyk(65.9%, 80.3%, 0%, 48.2%)
CIE-LABlab(19.89, 40.03, -55.66)
CIE-LCHlch(19.89, 68.56, 305.72°)
OKLaboklab(32.73% 0.03 -0.1606)
OKLCHoklch(32.73% 0.163 280.6)
XYZxyz(5.6151, 2.9622, 22.1012)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A84 #71841A
analogous
#1A3C84 #2D1A84 #621A84
triadic
#2D1A84 #842D1A #1A842D
tetradic
#2D1A84 #841A3C #71841A #1A8462
square
#2D1A84 #841A3C #71841A #1A8462
split-complementary
#2D1A84 #84621A #3C841A
monochromatic
#0A061E #1C1051 #2D1A84 #3E24B7 #5B3FD9

Accessibility & contrast

On white

13.19
#2D1A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2D1A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A84
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A84#FFFFFF#000000##FFFFFF
##2D1A841.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1a84;
/* rgb */ color: rgb(45, 26, 132);
/* oklch */ color: oklch(32.7% 0.163 280.6);
Tailwind
colors: {
  custom: {
    50: '#735aa9',
    500: '#2d1a84',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a84;
$custom-light: #735aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a84",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 250.755,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32725,
    "c": 0.16342,
    "h": 280.6
  },
  "luminance": 0.02963
}

Semantic roles & 50–950 ramp

primary
#2D1A84
secondary
#A3B842
accent
#EA3ECB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1A84

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

Preview Lab → · Contrast checker → · Palette generator →

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