#2E1190#2E1190

#2E1190 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.184 H 279.9°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#2E1190
RGBrgb(46, 17, 144)
HSLhsl(254, 79%, 32%)
HSVhsv(254, 88%, 56%)
CMYKcmyk(68.1%, 88.2%, 0%, 43.5%)
CIE-LABlab(20.02, 47.71, -62.95)
CIE-LCHlch(20.02, 78.99, 307.16°)
OKLaboklab(33.25% 0.0318 -0.1817)
OKLCHoklch(33.25% 0.184 279.9)
XYZxyz(6.3596, 2.9948, 26.6231)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1190 #739011
analogous
#113490 #2E1190 #6E1190
triadic
#2E1190 #902E11 #11902E
tetradic
#2E1190 #901134 #739011 #11906E
square
#2E1190 #901134 #739011 #11906E
split-complementary
#2E1190 #906E11 #349011
monochromatic
#0B0423 #1D0B59 #2E1190 #3F17C7 #5D34E7

Accessibility & contrast

On white

13.13
#2E1190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2E1190 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1190
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1190#FFFFFF#000000##FFFFFF
##2E11901.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003593
Deuteranopia (green-blind)
#002B8E
Tritanopia (blue-blind)
#003B54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1190;
/* rgb */ color: rgb(46, 17, 144);
/* oklch */ color: oklch(33.2% 0.184 279.9);
Tailwind
colors: {
  custom: {
    50: '#7757b2',
    500: '#2e1190',
    950: '#000000',
  },
}
SCSS
$custom: #2e1190;
$custom-light: #7757b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1190",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 144
  },
  "hsl": {
    "h": 253.701,
    "s": 78.882,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33248,
    "c": 0.18446,
    "h": 279.9
  },
  "luminance": 0.02995
}

Semantic roles & 50–950 ramp

primary
#2E1190
secondary
#A4C439
accent
#F532C9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2E1190

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

Preview Lab → · Contrast checker → · Palette generator →

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