#2E1886#2E1886

#2E1886 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.168 H 281.1°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#2E1886
RGBrgb(46, 24, 134)
HSLhsl(252, 70%, 31%)
HSVhsv(252, 82%, 53%)
CMYKcmyk(65.7%, 82.1%, 0%, 47.5%)
CIE-LABlab(19.86, 41.76, -56.96)
CIE-LCHlch(19.86, 70.63, 306.25°)
OKLaboklab(32.79% 0.0321 -0.1644)
OKLCHoklch(32.79% 0.168 281.1)
XYZxyz(5.7551, 2.9549, 22.8167)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1886 #708618
analogous
#183986 #2E1886 #651886
triadic
#2E1886 #862E18 #18862E
tetradic
#2E1886 #861839 #708618 #188665
square
#2E1886 #861839 #708618 #188665
split-complementary
#2E1886 #866518 #398618
monochromatic
#0A051E #1C0F52 #2E1886 #4021BA #5C3CDC

Accessibility & contrast

On white

13.20
#2E1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2E1886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1886
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1886#FFFFFF#000000##FFFFFF
##2E18861.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1886;
/* rgb */ color: rgb(46, 24, 134);
/* oklch */ color: oklch(32.8% 0.168 281.1);
Tailwind
colors: {
  custom: {
    50: '#7459aa',
    500: '#2e1886',
    950: '#000000',
  },
}
SCSS
$custom: #2e1886;
$custom-light: #7459aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1886",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 252,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32794,
    "c": 0.1675,
    "h": 281.1
  },
  "luminance": 0.02955
}

Semantic roles & 50–950 ramp

primary
#2E1886
secondary
#A1BA40
accent
#EC3BC9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1886

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

Preview Lab → · Contrast checker → · Palette generator →

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