#2D1D7C#2D1D7C

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

Color values

HEX#2D1D7C
RGBrgb(45, 29, 124)
HSLhsl(250, 62%, 30%)
HSVhsv(250, 77%, 49%)
CMYKcmyk(63.7%, 76.6%, 0%, 51.4%)
CIE-LABlab(19.60, 35.84, -51.06)
CIE-LCHlch(19.60, 62.38, 305.07°)
OKLaboklab(32.27% 0.0302 -0.1472)
OKLCHoklch(32.27% 0.15 281.6)
XYZxyz(5.1585, 2.8915, 19.3512)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D7C #6C7C1D
analogous
#1D3D7C #2D1D7C #5C1D7C
triadic
#2D1D7C #7C2D1D #1D7C2D
tetradic
#2D1D7C #7C1D3D #6C7C1D #1D7C5C
square
#2D1D7C #7C1D3D #6C7C1D #1D7C5C
split-complementary
#2D1D7C #7C5C1D #3D7C1D
monochromatic
#090619 #1B114A #2D1D7C #3F29AE #5941D3

Accessibility & contrast

On white

13.30
#2D1D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1D7C
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D7C#FFFFFF#000000##FFFFFF
##2D1D7C1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1d7c;
/* rgb */ color: rgb(45, 29, 124);
/* oklch */ color: oklch(32.3% 0.150 281.6);
Tailwind
colors: {
  custom: {
    50: '#715ba3',
    500: '#2d1d7c',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d7c;
$custom-light: #715ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d7c",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 250.105,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.32266,
    "c": 0.15031,
    "h": 281.6
  },
  "luminance": 0.02892
}

Semantic roles & 50–950 ramp

primary
#2D1D7C
secondary
#9EB045
accent
#E543CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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