#2D1686#2D1686

#2D1686 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.169 H 280.8°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#2D1686
RGBrgb(45, 22, 134)
HSLhsl(252, 72%, 31%)
HSVhsv(252, 84%, 53%)
CMYKcmyk(66.4%, 83.6%, 0%, 47.5%)
CIE-LABlab(19.44, 42.60, -57.66)
CIE-LCHlch(19.44, 71.69, 306.46°)
OKLaboklab(32.48% 0.0316 -0.1664)
OKLCHoklch(32.48% 0.169 280.8)
XYZxyz(5.6708, 2.8525, 22.8014)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1686 #6F8616
analogous
#163786 #2D1686 #651686
triadic
#2D1686 #862D16 #16862D
tetradic
#2D1686 #861637 #6F8616 #168665
square
#2D1686 #861637 #6F8616 #168665
split-complementary
#2D1686 #866516 #378616
monochromatic
#0A051D #1B0D51 #2D1686 #3F1FBB #5A38DE

Accessibility & contrast

On white

13.37
#2D1686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1686
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1686#FFFFFF#000000##FFFFFF
##2D16861.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002B84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1686;
/* rgb */ color: rgb(45, 22, 134);
/* oklch */ color: oklch(32.5% 0.169 280.8);
Tailwind
colors: {
  custom: {
    50: '#7458aa',
    500: '#2d1686',
    950: '#000000',
  },
}
SCSS
$custom: #2d1686;
$custom-light: #7458aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1686",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 134
  },
  "hsl": {
    "h": 252.321,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3248,
    "c": 0.16939,
    "h": 280.8
  },
  "luminance": 0.02853
}

Semantic roles & 50–950 ramp

primary
#2D1686
secondary
#A1BA3E
accent
#EF39C9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2D1686

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

Preview Lab → · Contrast checker → · Palette generator →

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