#2D15A1#2D15A1

#2D15A1 is a dark, highly saturated violet. Relative luminance 0.037; OKLCH L 35.5% C 0.201 H 276.5°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#2D15A1
RGBrgb(45, 21, 161)
HSLhsl(250, 77%, 36%)
HSVhsv(250, 87%, 63%)
CMYKcmyk(72%, 87%, 0%, 36.9%)
CIE-LABlab(22.54, 51.00, -69.25)
CIE-LCHlch(22.54, 86.01, 306.37°)
OKLaboklab(35.54% 0.0229 -0.2001)
OKLCHoklch(35.54% 0.201 276.5)
XYZxyz(7.7813, 3.6667, 34.0090)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D15A1 #89A115
analogous
#1543A1 #2D15A1 #7315A1
triadic
#2D15A1 #A12D15 #15A12D
tetradic
#2D15A1 #A11543 #89A115 #15A173
square
#2D15A1 #A11543 #89A115 #15A173
split-complementary
#2D15A1 #A17315 #43A115
monochromatic
#0F0735 #1E0E6B #2D15A1 #3C1CD7 #6449E7

Accessibility & contrast

On white

12.11
#2D15A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2D15A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D15A1
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D15A1#FFFFFF#000000##FFFFFF
##2D15A11.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA5
Deuteranopia (green-blind)
#00309F
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d15a1;
/* rgb */ color: rgb(45, 21, 161);
/* oklch */ color: oklch(35.5% 0.201 276.5);
Tailwind
colors: {
  custom: {
    50: '#7a5abe',
    500: '#2d15a1',
    950: '#000000',
  },
}
SCSS
$custom: #2d15a1;
$custom-light: #7a5abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2d15a1",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 161
  },
  "hsl": {
    "h": 250.286,
    "s": 76.923,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35542,
    "c": 0.20137,
    "h": 276.5
  },
  "luminance": 0.03667
}

Semantic roles & 50–950 ramp

primary
#2D15A1
secondary
#B3C849
accent
#F334D3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2D15A1

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

Preview Lab → · Contrast checker → · Palette generator →

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