#2D1A79#2D1A79

#2D1A79 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.150 H 282.8°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#2D1A79
RGBrgb(45, 26, 121)
HSLhsl(252, 65%, 29%)
HSVhsv(252, 79%, 47%)
CMYKcmyk(62.8%, 78.5%, 0%, 52.5%)
CIE-LABlab(18.70, 36.54, -50.63)
CIE-LCHlch(18.70, 62.44, 305.82°)
OKLaboklab(31.53% 0.0332 -0.146)
OKLCHoklch(31.53% 0.15 282.8)
XYZxyz(4.9017, 2.6768, 18.3438)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A79 #66791A
analogous
#1A3779 #2D1A79 #5D1A79
triadic
#2D1A79 #792D1A #1A792D
tetradic
#2D1A79 #791A37 #66791A #1A795D
square
#2D1A79 #791A37 #66791A #1A795D
split-complementary
#2D1A79 #795D1A #37791A
monochromatic
#090519 #1A0F47 #2D1A79 #4025AB #5839D4

Accessibility & contrast

On white

13.68
#2D1A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2D1A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A79
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A79#FFFFFF#000000##FFFFFF
##2D1A791.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d1a79;
/* rgb */ color: rgb(45, 26, 121);
/* oklch */ color: oklch(31.5% 0.150 282.8);
Tailwind
colors: {
  custom: {
    50: '#7159a1',
    500: '#2d1a79',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a79;
$custom-light: #7159a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a79",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 252,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31534,
    "c": 0.1497,
    "h": 282.8
  },
  "luminance": 0.02677
}

Semantic roles & 50–950 ramp

primary
#2D1A79
secondary
#98AD41
accent
#E840C6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D1A79

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

Preview Lab → · Contrast checker → · Palette generator →

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