#2E15A0#2E15A0

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

Color values

HEX#2E15A0
RGBrgb(46, 21, 160)
HSLhsl(251, 77%, 35%)
HSVhsv(251, 87%, 63%)
CMYKcmyk(71.2%, 86.9%, 0%, 37.3%)
CIE-LABlab(22.49, 50.78, -68.71)
CIE-LCHlch(22.49, 85.44, 306.46°)
OKLaboklab(35.5% 0.0247 -0.1985)
OKLCHoklch(35.5% 0.2 277.1)
XYZxyz(7.7380, 3.6545, 33.5485)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E15A0 #87A015
analogous
#1542A0 #2E15A0 #7315A0
triadic
#2E15A0 #A02E15 #15A02E
tetradic
#2E15A0 #A01542 #87A015 #15A073
square
#2E15A0 #A01542 #87A015 #15A073
split-complementary
#2E15A0 #A07315 #42A015
monochromatic
#0F0734 #1E0E6A #2E15A0 #3E1CD6 #6548E7

Accessibility & contrast

On white

12.13
#2E15A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E15A0
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E15A0#FFFFFF#000000##FFFFFF
##2E15A01.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA4
Deuteranopia (green-blind)
#00309E
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e15a0;
/* rgb */ color: rgb(46, 21, 160);
/* oklch */ color: oklch(35.5% 0.200 277.1);
Tailwind
colors: {
  custom: {
    50: '#7a5abe',
    500: '#2e15a0',
    950: '#000000',
  },
}
SCSS
$custom: #2e15a0;
$custom-light: #7a5abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2e15a0",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 160
  },
  "hsl": {
    "h": 250.791,
    "s": 76.796,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35499,
    "c": 0.20001,
    "h": 277.1
  },
  "luminance": 0.03655
}

Semantic roles & 50–950 ramp

primary
#2E15A0
secondary
#B1C849
accent
#F334D1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2E15A0

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

Preview Lab → · Contrast checker → · Palette generator →

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