#2D1A87#2D1A87

#2D1A87 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.167 H 280.0°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#2D1A87
RGBrgb(45, 26, 135)
HSLhsl(250, 68%, 32%)
HSVhsv(250, 81%, 53%)
CMYKcmyk(66.7%, 80.7%, 0%, 47.1%)
CIE-LABlab(20.23, 40.97, -56.99)
CIE-LCHlch(20.23, 70.19, 305.71°)
OKLaboklab(33.06% 0.0291 -0.1645)
OKLCHoklch(33.06% 0.167 280)
XYZxyz(5.8234, 3.0455, 23.1979)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A87 #74871A
analogous
#1A3E87 #2D1A87 #641A87
triadic
#2D1A87 #872D1A #1A872D
tetradic
#2D1A87 #871A3E #74871A #1A8764
square
#2D1A87 #871A3E #74871A #1A8764
split-complementary
#2D1A87 #87641A #3E871A
monochromatic
#0B0620 #1C1054 #2D1A87 #3E24BA #5C41DA

Accessibility & contrast

On white

13.05
#2D1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2D1A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A87
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A87#FFFFFF#000000##FFFFFF
##2D1A871.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d1a87;
/* rgb */ color: rgb(45, 26, 135);
/* oklch */ color: oklch(33.1% 0.167 280.0);
Tailwind
colors: {
  custom: {
    50: '#745aab',
    500: '#2d1a87',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a87;
$custom-light: #745aab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a87",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 250.459,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33056,
    "c": 0.1671,
    "h": 280
  },
  "luminance": 0.03046
}

Semantic roles & 50–950 ramp

primary
#2D1A87
secondary
#A5BA42
accent
#EB3DCC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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