#2E1374#2E1374

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

Color values

HEX#2E1374
RGBrgb(46, 19, 116)
HSLhsl(257, 72%, 26%)
HSVhsv(257, 84%, 45%)
CMYKcmyk(60.3%, 83.6%, 0%, 54.5%)
CIE-LABlab(17.02, 38.69, -50.18)
CIE-LCHlch(17.02, 63.36, 307.63°)
OKLaboklab(30.23% 0.0412 -0.1445)
OKLCHoklch(30.23% 0.15 285.9)
XYZxyz(4.5110, 2.3073, 16.7273)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1374 #597413
analogous
#132974 #2E1374 #5F1374
triadic
#2E1374 #742E13 #13742E
tetradic
#2E1374 #741329 #597413 #13745F
square
#2E1374 #741329 #597413 #13745F
split-complementary
#2E1374 #745F13 #297413
monochromatic
#0A041A #190A3F #2E1374 #431CA9 #5826DB

Accessibility & contrast

On white

14.37
#2E1374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1374
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1374#FFFFFF#000000##FFFFFF
##2E13741.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#083044
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1374;
/* rgb */ color: rgb(46, 19, 116);
/* oklch */ color: oklch(30.2% 0.150 285.9);
Tailwind
colors: {
  custom: {
    50: '#71559d',
    500: '#2e1374',
    950: '#000000',
  },
}
SCSS
$custom: #2e1374;
$custom-light: #71559d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1374",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 116
  },
  "hsl": {
    "h": 256.701,
    "s": 71.852,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30227,
    "c": 0.15029,
    "h": 285.9
  },
  "luminance": 0.02308
}

Semantic roles & 50–950 ramp

primary
#2E1374
secondary
#8BAA38
accent
#EF39BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1374

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

Preview Lab → · Contrast checker → · Palette generator →

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