#2D1B87#2D1B87

#2D1B87 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.166 H 279.9°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#2D1B87
RGBrgb(45, 27, 135)
HSLhsl(250, 67%, 32%)
HSVhsv(250, 80%, 53%)
CMYKcmyk(66.7%, 80%, 0%, 47.1%)
CIE-LABlab(20.40, 40.46, -56.70)
CIE-LCHlch(20.40, 69.65, 305.51°)
OKLaboklab(33.18% 0.0286 -0.1637)
OKLCHoklch(33.18% 0.166 279.9)
XYZxyz(5.8459, 3.0906, 23.2054)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B87 #75871B
analogous
#1B3F87 #2D1B87 #631B87
triadic
#2D1B87 #872D1B #1B872D
tetradic
#2D1B87 #871B3F #75871B #1B8763
square
#2D1B87 #871B3F #75871B #1B8763
split-complementary
#2D1B87 #87631B #3F871B
monochromatic
#0B0721 #1C1154 #2D1B87 #3E25BA #5C43D9

Accessibility & contrast

On white

12.98
#2D1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2D1B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B87
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B87#FFFFFF#000000##FFFFFF
##2D1B871.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1b87;
/* rgb */ color: rgb(45, 27, 135);
/* oklch */ color: oklch(33.2% 0.166 279.9);
Tailwind
colors: {
  custom: {
    50: '#735bab',
    500: '#2d1b87',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b87;
$custom-light: #735bab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b87",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 250,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3318,
    "c": 0.16616,
    "h": 279.9
  },
  "luminance": 0.03091
}

Semantic roles & 50–950 ramp

primary
#2D1B87
secondary
#A6BA44
accent
#EA3ECD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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