#2D1D5D#2D1D5D

#2D1D5D is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.2% C 0.109 H 289.4°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#2D1D5D
RGBrgb(45, 29, 93)
HSLhsl(255, 52%, 24%)
HSVhsv(255, 69%, 36%)
CMYKcmyk(51.6%, 68.8%, 0%, 63.5%)
CIE-LABlab(16.64, 25.63, -35.74)
CIE-LCHlch(16.64, 43.98, 305.65°)
OKLaboklab(29.23% 0.0361 -0.1023)
OKLCHoklch(29.23% 0.109 289.4)
XYZxyz(3.4968, 2.2268, 10.5994)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D5D #4D5D1D
analogous
#1D2D5D #2D1D5D #4D1D5D
triadic
#2D1D5D #5D2D1D #1D5D2D
tetradic
#2D1D5D #5D1D2D #4D5D1D #1D5D4D
square
#2D1D5D #5D1D2D #4D5D1D #1D5D4D
split-complementary
#2D1D5D #5D4D1D #2D5D1D
monochromatic
#0B0717 #160E2E #2D1D5D #442C8C #5A3ABA

Accessibility & contrast

On white

14.53
#2D1D5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2D1D5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D5D
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D5D#FFFFFF#000000##FFFFFF
##2D1D5D1.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5F
Deuteranopia (green-blind)
#00285C
Tritanopia (blue-blind)
#1D2C3A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d1d5d;
/* rgb */ color: rgb(45, 29, 93);
/* oklch */ color: oklch(29.2% 0.109 289.4);
Tailwind
colors: {
  custom: {
    50: '#6b5a8b',
    500: '#2d1d5d',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d5d;
$custom-light: #6b5a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d5d",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 93
  },
  "hsl": {
    "h": 255,
    "s": 52.459,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29231,
    "c": 0.10851,
    "h": 289.4
  },
  "luminance": 0.02227
}

Semantic roles & 50–950 ramp

primary
#2D1D5D
secondary
#7F9244
accent
#DC4CB8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2D1D5D

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

Preview Lab → · Contrast checker → · Palette generator →

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