#2E1390#2E1390

#2E1390 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.183 H 279.8°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#2E1390
RGBrgb(46, 19, 144)
HSLhsl(253, 77%, 32%)
HSVhsv(253, 87%, 56%)
CMYKcmyk(68.1%, 86.8%, 0%, 43.5%)
CIE-LABlab(20.28, 46.95, -62.53)
CIE-LCHlch(20.28, 78.19, 306.90°)
OKLaboklab(33.42% 0.031 -0.1805)
OKLCHoklch(33.42% 0.183 279.8)
XYZxyz(6.3920, 3.0597, 26.6339)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1390 #759013
analogous
#133790 #2E1390 #6D1390
triadic
#2E1390 #902E13 #13902E
tetradic
#2E1390 #901337 #759013 #13906D
square
#2E1390 #901337 #759013 #13906D
split-complementary
#2E1390 #906D13 #379013
monochromatic
#0B0524 #1D0C5A #2E1390 #3F1AC6 #5E39E5

Accessibility & contrast

On white

13.03
#2E1390 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2E1390 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1390
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1390#FFFFFF#000000##FFFFFF
##2E13901.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003593
Deuteranopia (green-blind)
#002C8E
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e1390;
/* rgb */ color: rgb(46, 19, 144);
/* oklch */ color: oklch(33.4% 0.183 279.8);
Tailwind
colors: {
  custom: {
    50: '#7657b2',
    500: '#2e1390',
    950: '#000000',
  },
}
SCSS
$custom: #2e1390;
$custom-light: #7657b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1390",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 144
  },
  "hsl": {
    "h": 252.96,
    "s": 76.687,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33424,
    "c": 0.18314,
    "h": 279.8
  },
  "luminance": 0.0306
}

Semantic roles & 50–950 ramp

primary
#2E1390
secondary
#A6C43B
accent
#F335CA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2E1390

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

Preview Lab → · Contrast checker → · Palette generator →

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