#2E1473#2E1473

#2E1473 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.148 H 286.0°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#2E1473
RGBrgb(46, 20, 115)
HSLhsl(256, 70%, 26%)
HSVhsv(256, 83%, 45%)
CMYKcmyk(60%, 82.6%, 0%, 54.9%)
CIE-LABlab(17.08, 37.91, -49.44)
CIE-LCHlch(17.08, 62.30, 307.48°)
OKLaboklab(30.23% 0.0409 -0.1424)
OKLCHoklch(30.23% 0.148 286)
XYZxyz(4.4704, 2.3187, 16.4283)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1473 #597314
analogous
#142A73 #2E1473 #5E1473
triadic
#2E1473 #732E14 #14732E
tetradic
#2E1473 #73142A #597314 #14735E
square
#2E1473 #73142A #597314 #14735E
split-complementary
#2E1473 #735E14 #2A7314
monochromatic
#0A051A #190B3F #2E1473 #431DA7 #5828DA

Accessibility & contrast

On white

14.35
#2E1473 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1473
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1473#FFFFFF#000000##FFFFFF
##2E14731.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C76
Deuteranopia (green-blind)
#002771
Tritanopia (blue-blind)
#0A3044
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1473;
/* rgb */ color: rgb(46, 20, 115);
/* oklch */ color: oklch(30.2% 0.148 286.0);
Tailwind
colors: {
  custom: {
    50: '#70569c',
    500: '#2e1473',
    950: '#000000',
  },
}
SCSS
$custom: #2e1473;
$custom-light: #70569c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1473",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 115
  },
  "hsl": {
    "h": 256.421,
    "s": 70.37,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30232,
    "c": 0.14816,
    "h": 286
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#2E1473
secondary
#8BA93A
accent
#ED3BBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1473

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

Preview Lab → · Contrast checker → · Palette generator →

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