#2D11A1#2D11A1

#2D11A1 is a dark, highly saturated violet. Relative luminance 0.035; OKLCH L 35.2% C 0.204 H 276.8°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#2D11A1
RGBrgb(45, 17, 161)
HSLhsl(252, 81%, 35%)
HSVhsv(252, 89%, 63%)
CMYKcmyk(72%, 89.4%, 0%, 36.9%)
CIE-LABlab(22.06, 52.44, -70.05)
CIE-LCHlch(22.06, 87.50, 306.82°)
OKLaboklab(35.22% 0.024 -0.2023)
OKLCHoklch(35.22% 0.204 276.8)
XYZxyz(7.7136, 3.5313, 33.9864)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D11A1 #85A111
analogous
#113DA1 #2D11A1 #7511A1
triadic
#2D11A1 #A12D11 #11A12D
tetradic
#2D11A1 #A1113D #85A111 #11A175
square
#2D11A1 #A1113D #85A111 #11A175
split-complementary
#2D11A1 #A17511 #3DA111
monochromatic
#0E0532 #1E0B6A #2D11A1 #3C17D8 #6241EB

Accessibility & contrast

On white

12.31
#2D11A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2D11A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D11A1
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D11A1#FFFFFF#000000##FFFFFF
##2D11A11.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA5
Deuteranopia (green-blind)
#002F9F
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d11a1;
/* rgb */ color: rgb(45, 17, 161);
/* oklch */ color: oklch(35.2% 0.204 276.8);
Tailwind
colors: {
  custom: {
    50: '#7a58be',
    500: '#2d11a1',
    950: '#000000',
  },
}
SCSS
$custom: #2d11a1;
$custom-light: #7a58be;
$custom-dark: #000000;
JSON
{
  "hex": "#2d11a1",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 161
  },
  "hsl": {
    "h": 251.667,
    "s": 80.899,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35216,
    "c": 0.20373,
    "h": 276.8
  },
  "luminance": 0.03532
}

Semantic roles & 50–950 ramp

primary
#2D11A1
secondary
#B0CB43
accent
#F731D1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2D11A1

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

Preview Lab → · Contrast checker → · Palette generator →

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