#2D1B7D#2D1B7D

#2D1B7D is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.154 H 281.8°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#2D1B7D
RGBrgb(45, 27, 125)
HSLhsl(251, 64%, 30%)
HSVhsv(251, 78%, 49%)
CMYKcmyk(64%, 78.4%, 0%, 51%)
CIE-LABlab(19.32, 37.28, -52.17)
CIE-LCHlch(19.32, 64.12, 305.55°)
OKLaboklab(32.1% 0.0314 -0.1505)
OKLCHoklch(32.1% 0.154 281.8)
XYZxyz(5.1746, 2.8220, 19.6701)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B7D #6B7D1B
analogous
#1B3A7D #2D1B7D #5E1B7D
triadic
#2D1B7D #7D2D1B #1B7D2D
tetradic
#2D1B7D #7D1B3A #6B7D1B #1B7D5E
square
#2D1B7D #7D1B3A #6B7D1B #1B7D5E
split-complementary
#2D1B7D #7D5E1B #3A7D1B
monochromatic
#090519 #1B104B #2D1B7D #3F26AF #593DD5

Accessibility & contrast

On white

13.42
#2D1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2D1B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B7D
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B7D#FFFFFF#000000##FFFFFF
##2D1B7D1.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1b7d;
/* rgb */ color: rgb(45, 27, 125);
/* oklch */ color: oklch(32.1% 0.154 281.8);
Tailwind
colors: {
  custom: {
    50: '#715aa4',
    500: '#2d1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b7d;
$custom-light: #715aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b7d",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 251.02,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32095,
    "c": 0.15371,
    "h": 281.8
  },
  "luminance": 0.02822
}

Semantic roles & 50–950 ramp

primary
#2D1B7D
secondary
#9DB143
accent
#E740C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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