#2E1573#2E1573

#2E1573 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.147 H 285.8°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#2E1573
RGBrgb(46, 21, 115)
HSLhsl(256, 69%, 27%)
HSVhsv(256, 82%, 45%)
CMYKcmyk(60%, 81.7%, 0%, 54.9%)
CIE-LABlab(17.25, 37.42, -49.16)
CIE-LCHlch(17.25, 61.78, 307.27°)
OKLaboklab(30.35% 0.0402 -0.1416)
OKLCHoklch(30.35% 0.147 285.8)
XYZxyz(4.4885, 2.3547, 16.4343)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1573 #5A7315
analogous
#152B73 #2E1573 #5D1573
triadic
#2E1573 #732E15 #15732E
tetradic
#2E1573 #73152B #5A7315 #15735D
square
#2E1573 #73152B #5A7315 #15735D
split-complementary
#2E1573 #735D15 #2B7315
monochromatic
#0A051A #190C3F #2E1573 #431EA7 #582AD8

Accessibility & contrast

On white

14.28
#2E1573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2E1573 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1573
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1573#FFFFFF#000000##FFFFFF
##2E15731.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#0A3144
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1573;
/* rgb */ color: rgb(46, 21, 115);
/* oklch */ color: oklch(30.4% 0.147 285.8);
Tailwind
colors: {
  custom: {
    50: '#70569c',
    500: '#2e1573',
    950: '#000000',
  },
}
SCSS
$custom: #2e1573;
$custom-light: #70569c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1573",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 115
  },
  "hsl": {
    "h": 255.957,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30351,
    "c": 0.14718,
    "h": 285.8
  },
  "luminance": 0.02355
}

Semantic roles & 50–950 ramp

primary
#2E1573
secondary
#8CA93B
accent
#EC3CBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1573

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

Preview Lab → · Contrast checker → · Palette generator →

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