#2D1D7D#2D1D7D

#2D1D7D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.152 H 281.4°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#2D1D7D
RGBrgb(45, 29, 125)
HSLhsl(250, 62%, 30%)
HSVhsv(250, 77%, 49%)
CMYKcmyk(64%, 76.8%, 0%, 51%)
CIE-LABlab(19.71, 36.17, -51.53)
CIE-LCHlch(19.71, 62.95, 305.07°)
OKLaboklab(32.37% 0.0299 -0.1486)
OKLCHoklch(32.37% 0.152 281.4)
XYZxyz(5.2221, 2.9169, 19.6859)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D7D #6D7D1D
analogous
#1D3D7D #2D1D7D #5D1D7D
triadic
#2D1D7D #7D2D1D #1D7D2D
tetradic
#2D1D7D #7D1D3D #6D7D1D #1D7D5D
square
#2D1D7D #7D1D3D #6D7D1D #1D7D5D
split-complementary
#2D1D7D #7D5D1D #3D7D1D
monochromatic
#09061A #1B114B #2D1D7D #3F29AF #5A41D3

Accessibility & contrast

On white

13.26
#2D1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2D1D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D7D
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D7D#FFFFFF#000000##FFFFFF
##2D1D7D1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1d7d;
/* rgb */ color: rgb(45, 29, 125);
/* oklch */ color: oklch(32.4% 0.152 281.4);
Tailwind
colors: {
  custom: {
    50: '#715ba4',
    500: '#2d1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d7d;
$custom-light: #715ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d7d",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 250,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32371,
    "c": 0.1516,
    "h": 281.4
  },
  "luminance": 0.02917
}

Semantic roles & 50–950 ramp

primary
#2D1D7D
secondary
#9FB145
accent
#E542CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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