#2E1576#2E1576

#2E1576 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.151 H 285.1°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#2E1576
RGBrgb(46, 21, 118)
HSLhsl(255, 70%, 27%)
HSVhsv(255, 82%, 46%)
CMYKcmyk(61%, 82.2%, 0%, 53.7%)
CIE-LABlab(17.58, 38.33, -50.56)
CIE-LCHlch(17.58, 63.44, 307.17°)
OKLaboklab(30.68% 0.0392 -0.1457)
OKLCHoklch(30.68% 0.151 285.1)
XYZxyz(4.6639, 2.4249, 17.3583)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1576 #5D7615
analogous
#152D76 #2E1576 #5F1576
triadic
#2E1576 #762E15 #15762E
tetradic
#2E1576 #76152D #5D7615 #15765F
square
#2E1576 #76152D #5D7615 #15765F
split-complementary
#2E1576 #765F15 #2D7615
monochromatic
#0A051A #1A0C42 #2E1576 #421EAA #592CD9

Accessibility & contrast

On white

14.14
#2E1576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1576
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1576#FFFFFF#000000##FFFFFF
##2E15761.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#043245
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e1576;
/* rgb */ color: rgb(46, 21, 118);
/* oklch */ color: oklch(30.7% 0.151 285.1);
Tailwind
colors: {
  custom: {
    50: '#71569f',
    500: '#2e1576',
    950: '#000000',
  },
}
SCSS
$custom: #2e1576;
$custom-light: #71569f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1576",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 255.464,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30676,
    "c": 0.15084,
    "h": 285.1
  },
  "luminance": 0.02425
}

Semantic roles & 50–950 ramp

primary
#2E1576
secondary
#8FAC3B
accent
#ED3BBF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2E1576

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

Preview Lab → · Contrast checker → · Palette generator →

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