#2E1884#2E1884

#2E1884 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.165 H 281.4°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#2E1884
RGBrgb(46, 24, 132)
HSLhsl(252, 69%, 31%)
HSVhsv(252, 82%, 52%)
CMYKcmyk(65.2%, 81.8%, 0%, 48.2%)
CIE-LABlab(19.64, 41.15, -56.07)
CIE-LCHlch(19.64, 69.55, 306.27°)
OKLaboklab(32.57% 0.0328 -0.1618)
OKLCHoklch(32.57% 0.165 281.4)
XYZxyz(5.6169, 2.8996, 22.0890)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1884 #6E8418
analogous
#183884 #2E1884 #641884
triadic
#2E1884 #842E18 #18842E
tetradic
#2E1884 #841838 #6E8418 #188464
square
#2E1884 #841838 #6E8418 #188464
split-complementary
#2E1884 #846418 #388418
monochromatic
#0A051C #1C0F50 #2E1884 #4021B8 #5C3BDB

Accessibility & contrast

On white

13.29
#2E1884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2E1884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1884
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1884#FFFFFF#000000##FFFFFF
##2E18841.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1884;
/* rgb */ color: rgb(46, 24, 132);
/* oklch */ color: oklch(32.6% 0.165 281.4);
Tailwind
colors: {
  custom: {
    50: '#7359a9',
    500: '#2e1884',
    950: '#000000',
  },
}
SCSS
$custom: #2e1884;
$custom-light: #7359a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1884",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 252.222,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32571,
    "c": 0.16508,
    "h": 281.4
  },
  "luminance": 0.029
}

Semantic roles & 50–950 ramp

primary
#2E1884
secondary
#9FB840
accent
#EC3CC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1884

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

Preview Lab → · Contrast checker → · Palette generator →

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