#2D1886#2D1886

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

Color values

HEX#2D1886
RGBrgb(45, 24, 134)
HSLhsl(251, 70%, 31%)
HSVhsv(251, 82%, 53%)
CMYKcmyk(66.4%, 82.1%, 0%, 47.5%)
CIE-LABlab(19.77, 41.65, -57.12)
CIE-LCHlch(19.77, 70.69, 306.10°)
OKLaboklab(32.71% 0.0306 -0.1649)
OKLCHoklch(32.71% 0.168 280.5)
XYZxyz(5.7105, 2.9319, 22.8146)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1886 #718618
analogous
#183A86 #2D1886 #641886
triadic
#2D1886 #862D18 #18862D
tetradic
#2D1886 #86183A #718618 #188664
square
#2D1886 #86183A #718618 #188664
split-complementary
#2D1886 #866418 #3A8618
monochromatic
#0A051E #1C0F52 #2D1886 #3E21BA #5B3CDC

Accessibility & contrast

On white

13.24
#2D1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1886
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1886#FFFFFF#000000##FFFFFF
##2D18861.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1886;
/* rgb */ color: rgb(45, 24, 134);
/* oklch */ color: oklch(32.7% 0.168 280.5);
Tailwind
colors: {
  custom: {
    50: '#7359aa',
    500: '#2d1886',
    950: '#000000',
  },
}
SCSS
$custom: #2d1886;
$custom-light: #7359aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1886",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 251.455,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32706,
    "c": 0.16768,
    "h": 280.5
  },
  "luminance": 0.02932
}

Semantic roles & 50–950 ramp

primary
#2D1886
secondary
#A3BA40
accent
#EC3BCB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1886

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

Preview Lab → · Contrast checker → · Palette generator →

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