#2D1371#2D1371

#2D1371 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.147 H 286.0°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#2D1371
RGBrgb(45, 19, 113)
HSLhsl(257, 71%, 26%)
HSVhsv(257, 83%, 44%)
CMYKcmyk(60.2%, 83.2%, 0%, 55.7%)
CIE-LABlab(16.58, 37.66, -48.97)
CIE-LCHlch(16.58, 61.78, 307.56°)
OKLaboklab(29.8% 0.0406 -0.141)
OKLCHoklch(29.8% 0.147 286)
XYZxyz(4.2948, 2.2156, 15.8209)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1371 #577113
analogous
#132871 #2D1371 #5C1371
triadic
#2D1371 #712D13 #13712D
tetradic
#2D1371 #711328 #577113 #13715C
square
#2D1371 #711328 #577113 #13715C
split-complementary
#2D1371 #715C13 #287113
monochromatic
#0A041A #180A3D #2D1371 #421CA5 #5725DA

Accessibility & contrast

On white

14.55
#2D1371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2D1371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1371
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1371#FFFFFF#000000##FFFFFF
##2D13711.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#0A2F42
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d1371;
/* rgb */ color: rgb(45, 19, 113);
/* oklch */ color: oklch(29.8% 0.147 286.0);
Tailwind
colors: {
  custom: {
    50: '#6f559b',
    500: '#2d1371',
    950: '#000000',
  },
}
SCSS
$custom: #2d1371;
$custom-light: #6f559b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1371",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 256.596,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29795,
    "c": 0.14677,
    "h": 286
  },
  "luminance": 0.02216
}

Semantic roles & 50–950 ramp

primary
#2D1371
secondary
#89A838
accent
#EE3ABC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1371

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

Preview Lab → · Contrast checker → · Palette generator →

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