#2D1C7A#2D1C7A

#2D1C7A is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.149 H 282.2°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#2D1C7A
RGBrgb(45, 28, 122)
HSLhsl(251, 63%, 29%)
HSVhsv(251, 77%, 48%)
CMYKcmyk(63.1%, 77%, 0%, 52.2%)
CIE-LABlab(19.20, 35.76, -50.46)
CIE-LCHlch(19.20, 61.84, 305.32°)
OKLaboklab(31.92% 0.0314 -0.1455)
OKLCHoklch(31.92% 0.149 282.2)
XYZxyz(5.0092, 2.7932, 18.6838)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C7A #697A1C
analogous
#1C3A7A #2D1C7A #5C1C7A
triadic
#2D1C7A #7A2D1C #1C7A2D
tetradic
#2D1C7A #7A1C3A #697A1C #1C7A5C
square
#2D1C7A #7A1C3A #697A1C #1C7A5C
split-complementary
#2D1C7A #7A5C1C #3A7A1C
monochromatic
#090619 #1B1148 #2D1C7A #3F27AC #593ED3

Accessibility & contrast

On white

13.47
#2D1C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1C7A
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C7A#FFFFFF#000000##FFFFFF
##2D1C7A1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1c7a;
/* rgb */ color: rgb(45, 28, 122);
/* oklch */ color: oklch(31.9% 0.149 282.2);
Tailwind
colors: {
  custom: {
    50: '#715aa1',
    500: '#2d1c7a',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c7a;
$custom-light: #715aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c7a",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 122
  },
  "hsl": {
    "h": 250.851,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31915,
    "c": 0.14884,
    "h": 282.2
  },
  "luminance": 0.02794
}

Semantic roles & 50–950 ramp

primary
#2D1C7A
secondary
#9BAE44
accent
#E642C8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D1C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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