#2E1574#2E1574

#2E1574 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.148 H 285.6°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#2E1574
RGBrgb(46, 21, 116)
HSLhsl(256, 69%, 27%)
HSVhsv(256, 82%, 45%)
CMYKcmyk(60.3%, 81.9%, 0%, 54.5%)
CIE-LABlab(17.36, 37.72, -49.63)
CIE-LCHlch(17.36, 62.34, 307.24°)
OKLaboklab(30.46% 0.0398 -0.143)
OKLCHoklch(30.46% 0.148 285.6)
XYZxyz(4.5463, 2.3779, 16.7390)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1574 #5B7415
analogous
#152C74 #2E1574 #5E1574
triadic
#2E1574 #742E15 #15742E
tetradic
#2E1574 #74152C #5B7415 #15745E
square
#2E1574 #74152C #5B7415 #15745E
split-complementary
#2E1574 #745E15 #2C7415
monochromatic
#0A051A #190C40 #2E1574 #431EA8 #592BD9

Accessibility & contrast

On white

14.23
#2E1574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2E1574 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1574
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1574#FFFFFF#000000##FFFFFF
##2E15741.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#083144
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e1574;
/* rgb */ color: rgb(46, 21, 116);
/* oklch */ color: oklch(30.5% 0.148 285.6);
Tailwind
colors: {
  custom: {
    50: '#70569d',
    500: '#2e1574',
    950: '#000000',
  },
}
SCSS
$custom: #2e1574;
$custom-light: #70569d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1574",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 255.789,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30459,
    "c": 0.1484,
    "h": 285.6
  },
  "luminance": 0.02378
}

Semantic roles & 50–950 ramp

primary
#2E1574
secondary
#8DAA3B
accent
#EC3CBE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1574

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

Preview Lab → · Contrast checker → · Palette generator →

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