#2E1577#2E1577

#2E1577 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.152 H 284.8°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#2E1577
RGBrgb(46, 21, 119)
HSLhsl(255, 70%, 27%)
HSVhsv(255, 82%, 47%)
CMYKcmyk(61.3%, 82.4%, 0%, 53.3%)
CIE-LABlab(17.69, 38.63, -51.02)
CIE-LCHlch(17.69, 64.00, 307.13°)
OKLaboklab(30.79% 0.0388 -0.147)
OKLCHoklch(30.79% 0.152 284.8)
XYZxyz(4.7236, 2.4488, 17.6729)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1577 #5E7715
analogous
#152D77 #2E1577 #5F1577
triadic
#2E1577 #772E15 #15772E
tetradic
#2E1577 #77152D #5E7715 #15775F
square
#2E1577 #77152D #5E7715 #15775F
split-complementary
#2E1577 #775F15 #2D7715
monochromatic
#0A051A #1A0C43 #2E1577 #421EAB #592DDA

Accessibility & contrast

On white

14.10
#2E1577 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2E1577 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1577
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1577#FFFFFF#000000##FFFFFF
##2E15771.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002875
Tritanopia (blue-blind)
#023246
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e1577;
/* rgb */ color: rgb(46, 21, 119);
/* oklch */ color: oklch(30.8% 0.152 284.8);
Tailwind
colors: {
  custom: {
    50: '#71569f',
    500: '#2e1577',
    950: '#000000',
  },
}
SCSS
$custom: #2e1577;
$custom-light: #71569f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1577",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 119
  },
  "hsl": {
    "h": 255.306,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30785,
    "c": 0.15206,
    "h": 284.8
  },
  "luminance": 0.02449
}

Semantic roles & 50–950 ramp

primary
#2E1577
secondary
#90AD3B
accent
#ED3BBF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #2E1577

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

Preview Lab → · Contrast checker → · Palette generator →

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