#2D1B86#2D1B86

#2D1B86 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.165 H 280.1°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#2D1B86
RGBrgb(45, 27, 134)
HSLhsl(250, 66%, 32%)
HSVhsv(250, 80%, 53%)
CMYKcmyk(66.4%, 79.9%, 0%, 47.5%)
CIE-LABlab(20.29, 40.14, -56.25)
CIE-LCHlch(20.29, 69.11, 305.51°)
OKLaboklab(33.07% 0.0288 -0.1624)
OKLCHoklch(33.07% 0.165 280.1)
XYZxyz(5.7758, 3.0625, 22.8364)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B86 #74861B
analogous
#1B3F86 #2D1B86 #631B86
triadic
#2D1B86 #862D1B #1B862D
tetradic
#2D1B86 #861B3F #74861B #1B8663
square
#2D1B86 #861B3F #74861B #1B8663
split-complementary
#2D1B86 #86631B #3F861B
monochromatic
#0B0620 #1C1153 #2D1B86 #3E25B9 #5C42D9

Accessibility & contrast

On white

13.02
#2D1B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1B86
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B86#FFFFFF#000000##FFFFFF
##2D1B861.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d1b86;
/* rgb */ color: rgb(45, 27, 134);
/* oklch */ color: oklch(33.1% 0.165 280.1);
Tailwind
colors: {
  custom: {
    50: '#735baa',
    500: '#2d1b86',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b86;
$custom-light: #735baa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b86",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 250.093,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3307,
    "c": 0.16493,
    "h": 280.1
  },
  "luminance": 0.03063
}

Semantic roles & 50–950 ramp

primary
#2D1B86
secondary
#A5B944
accent
#E93ECD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1B86

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

Preview Lab → · Contrast checker → · Palette generator →

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