#2E1373#2E1373

#2E1373 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.149 H 286.2°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#2E1373
RGBrgb(46, 19, 115)
HSLhsl(257, 72%, 26%)
HSVhsv(257, 83%, 45%)
CMYKcmyk(60%, 83.5%, 0%, 54.9%)
CIE-LABlab(16.91, 38.39, -49.72)
CIE-LCHlch(16.91, 62.81, 307.67°)
OKLaboklab(30.12% 0.0415 -0.1432)
OKLCHoklch(30.12% 0.149 286.2)
XYZxyz(4.4532, 2.2841, 16.4226)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1373 #587313
analogous
#132873 #2E1373 #5E1373
triadic
#2E1373 #732E13 #13732E
tetradic
#2E1373 #731328 #587313 #13735E
square
#2E1373 #731328 #587313 #13735E
split-complementary
#2E1373 #735E13 #287313
monochromatic
#0B041A #190A3E #2E1373 #431CA8 #5825DB

Accessibility & contrast

On white

14.42
#2E1373 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1373
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1373#FFFFFF#000000##FFFFFF
##2E13731.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1373;
/* rgb */ color: rgb(46, 19, 115);
/* oklch */ color: oklch(30.1% 0.149 286.2);
Tailwind
colors: {
  custom: {
    50: '#70559c',
    500: '#2e1373',
    950: '#000000',
  },
}
SCSS
$custom: #2e1373;
$custom-light: #70559c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1373",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 115
  },
  "hsl": {
    "h": 256.875,
    "s": 71.642,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30118,
    "c": 0.14909,
    "h": 286.2
  },
  "luminance": 0.02284
}

Semantic roles & 50–950 ramp

primary
#2E1373
secondary
#8AAA38
accent
#EE39BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1373

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

Preview Lab → · Contrast checker → · Palette generator →

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