#2E1590#2E1590

#2E1590 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.6% C 0.182 H 279.6°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#2E1590
RGBrgb(46, 21, 144)
HSLhsl(252, 75%, 32%)
HSVhsv(252, 85%, 56%)
CMYKcmyk(68.1%, 85.4%, 0%, 43.5%)
CIE-LABlab(20.56, 46.13, -62.07)
CIE-LCHlch(20.56, 77.33, 306.62°)
OKLaboklab(33.61% 0.0302 -0.1792)
OKLCHoklch(33.61% 0.182 279.6)
XYZxyz(6.4273, 3.1303, 26.6456)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1590 #779015
analogous
#153A90 #2E1590 #6B1590
triadic
#2E1590 #902E15 #15902E
tetradic
#2E1590 #90153A #779015 #15906B
square
#2E1590 #90153A #779015 #15906B
split-complementary
#2E1590 #906B15 #3A9015
monochromatic
#0C0525 #1D0D5B #2E1590 #3F1DC5 #5E3DE3

Accessibility & contrast

On white

12.91
#2E1590 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2E1590 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1590
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1590#FFFFFF#000000##FFFFFF
##2E15901.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003693
Deuteranopia (green-blind)
#002D8E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e1590;
/* rgb */ color: rgb(46, 21, 144);
/* oklch */ color: oklch(33.6% 0.182 279.6);
Tailwind
colors: {
  custom: {
    50: '#7658b2',
    500: '#2e1590',
    950: '#000000',
  },
}
SCSS
$custom: #2e1590;
$custom-light: #7658b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1590",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 144
  },
  "hsl": {
    "h": 252.195,
    "s": 74.545,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33614,
    "c": 0.18172,
    "h": 279.6
  },
  "luminance": 0.03131
}

Semantic roles & 50–950 ramp

primary
#2E1590
secondary
#A8C23E
accent
#F137CB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1590

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

Preview Lab → · Contrast checker → · Palette generator →

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