#2E1571#2E1571

#2E1571 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.145 H 286.4°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#2E1571
RGBrgb(46, 21, 113)
HSLhsl(256, 69%, 26%)
HSVhsv(256, 81%, 44%)
CMYKcmyk(59.3%, 81.4%, 0%, 55.7%)
CIE-LABlab(17.03, 36.80, -48.22)
CIE-LCHlch(17.03, 60.66, 307.35°)
OKLaboklab(30.14% 0.0408 -0.1389)
OKLCHoklch(30.14% 0.145 286.4)
XYZxyz(4.3746, 2.3092, 15.8348)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1571 #587115
analogous
#152A71 #2E1571 #5C1571
triadic
#2E1571 #712E15 #15712E
tetradic
#2E1571 #71152A #587115 #15715C
square
#2E1571 #71152A #587115 #15715C
split-complementary
#2E1571 #715C15 #2A7115
monochromatic
#0B051A #190B3D #2E1571 #431FA5 #5829D7

Accessibility & contrast

On white

14.37
#2E1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2E1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1571
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1571#FFFFFF#000000##FFFFFF
##2E15711.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#0D3043
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1571;
/* rgb */ color: rgb(46, 21, 113);
/* oklch */ color: oklch(30.1% 0.145 286.4);
Tailwind
colors: {
  custom: {
    50: '#70569b',
    500: '#2e1571',
    950: '#000000',
  },
}
SCSS
$custom: #2e1571;
$custom-light: #70569b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1571",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 256.304,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30136,
    "c": 0.14473,
    "h": 286.4
  },
  "luminance": 0.02309
}

Semantic roles & 50–950 ramp

primary
#2E1571
secondary
#8AA73B
accent
#EB3CBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1571

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

Preview Lab → · Contrast checker → · Palette generator →

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