#2D1C7D#2D1C7D

#2D1C7D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.153 H 281.6°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#2D1C7D
RGBrgb(45, 28, 125)
HSLhsl(251, 63%, 30%)
HSVhsv(251, 78%, 49%)
CMYKcmyk(64%, 77.6%, 0%, 51%)
CIE-LABlab(19.51, 36.73, -51.85)
CIE-LCHlch(19.51, 63.54, 305.31°)
OKLaboklab(32.23% 0.0307 -0.1496)
OKLCHoklch(32.23% 0.153 281.6)
XYZxyz(5.1980, 2.8687, 19.6779)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C7D #6C7D1C
analogous
#1C3C7D #2D1C7D #5D1C7D
triadic
#2D1C7D #7D2D1C #1C7D2D
tetradic
#2D1C7D #7D1C3C #6C7D1C #1C7D5D
square
#2D1C7D #7D1C3C #6C7D1C #1C7D5D
split-complementary
#2D1C7D #7D5D1C #3C7D1C
monochromatic
#090619 #1B114B #2D1C7D #3F27AF #593FD4

Accessibility & contrast

On white

13.34
#2D1C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2D1C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1C7D
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C7D#FFFFFF#000000##FFFFFF
##2D1C7D1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1c7d;
/* rgb */ color: rgb(45, 28, 125);
/* oklch */ color: oklch(32.2% 0.153 281.6);
Tailwind
colors: {
  custom: {
    50: '#715ba4',
    500: '#2d1c7d',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c7d;
$custom-light: #715ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c7d",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 250.515,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.32231,
    "c": 0.15267,
    "h": 281.6
  },
  "luminance": 0.02869
}

Semantic roles & 50–950 ramp

primary
#2D1C7D
secondary
#9EB144
accent
#E641CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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