#2D1987#2D1987

#2D1987 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.168 H 280.2°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#2D1987
RGBrgb(45, 25, 135)
HSLhsl(251, 69%, 31%)
HSVhsv(251, 81%, 53%)
CMYKcmyk(66.7%, 81.5%, 0%, 47.1%)
CIE-LABlab(20.05, 41.47, -57.28)
CIE-LCHlch(20.05, 70.72, 305.90°)
OKLaboklab(32.94% 0.0297 -0.1654)
OKLCHoklch(32.94% 0.168 280.2)
XYZxyz(5.8016, 3.0020, 23.1907)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1987 #738719
analogous
#193C87 #2D1987 #641987
triadic
#2D1987 #872D19 #19872D
tetradic
#2D1987 #87193C #738719 #198764
square
#2D1987 #87193C #738719 #198764
split-complementary
#2D1987 #876419 #3C8719
monochromatic
#0B0620 #1C0F53 #2D1987 #3E23BB #5B3FDB

Accessibility & contrast

On white

13.12
#2D1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2D1987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1987
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1987#FFFFFF#000000##FFFFFF
##2D19871.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1987;
/* rgb */ color: rgb(45, 25, 135);
/* oklch */ color: oklch(32.9% 0.168 280.2);
Tailwind
colors: {
  custom: {
    50: '#745aab',
    500: '#2d1987',
    950: '#000000',
  },
}
SCSS
$custom: #2d1987;
$custom-light: #745aab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1987",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 250.909,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32936,
    "c": 0.168,
    "h": 280.2
  },
  "luminance": 0.03002
}

Semantic roles & 50–950 ramp

primary
#2D1987
secondary
#A4BA41
accent
#EC3CCC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1987

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

Preview Lab → · Contrast checker → · Palette generator →

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