#2D1986#2D1986

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

Color values

HEX#2D1986
RGBrgb(45, 25, 134)
HSLhsl(251, 69%, 31%)
HSVhsv(251, 81%, 53%)
CMYKcmyk(66.4%, 81.3%, 0%, 47.5%)
CIE-LABlab(19.94, 41.16, -56.84)
CIE-LCHlch(19.94, 70.18, 305.91°)
OKLaboklab(32.82% 0.03 -0.1641)
OKLCHoklch(32.82% 0.167 280.4)
XYZxyz(5.7315, 2.9739, 22.8216)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1986 #728619
analogous
#193B86 #2D1986 #631986
triadic
#2D1986 #862D19 #19862D
tetradic
#2D1986 #86193B #728619 #198663
square
#2D1986 #86193B #728619 #198663
split-complementary
#2D1986 #866319 #3B8619
monochromatic
#0A061F #1C0F52 #2D1986 #3E23BA #5B3EDB

Accessibility & contrast

On white

13.17
#2D1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1986
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1986#FFFFFF#000000##FFFFFF
##2D19861.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1986;
/* rgb */ color: rgb(45, 25, 134);
/* oklch */ color: oklch(32.8% 0.167 280.4);
Tailwind
colors: {
  custom: {
    50: '#7359aa',
    500: '#2d1986',
    950: '#000000',
  },
}
SCSS
$custom: #2d1986;
$custom-light: #7359aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1986",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 251.009,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32824,
    "c": 0.16679,
    "h": 280.4
  },
  "luminance": 0.02974
}

Semantic roles & 50–950 ramp

primary
#2D1986
secondary
#A3BA41
accent
#EB3CCB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1986

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

Preview Lab → · Contrast checker → · Palette generator →

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