#2E1785#2E1785

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

Color values

HEX#2E1785
RGBrgb(46, 23, 133)
HSLhsl(253, 71%, 31%)
HSVhsv(253, 83%, 52%)
CMYKcmyk(65.4%, 82.7%, 0%, 47.8%)
CIE-LABlab(19.58, 41.93, -56.79)
CIE-LCHlch(19.58, 70.60, 306.44°)
OKLaboklab(32.57% 0.033 -0.1639)
OKLCHoklch(32.57% 0.167 281.4)
XYZxyz(5.6654, 2.8867, 22.4444)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1785 #6E8517
analogous
#173785 #2E1785 #651785
triadic
#2E1785 #852E17 #17852E
tetradic
#2E1785 #851737 #6E8517 #178565
square
#2E1785 #851737 #6E8517 #178565
split-complementary
#2E1785 #856517 #378517
monochromatic
#0A051D #1C0E51 #2E1785 #4020B9 #5C3ADD

Accessibility & contrast

On white

13.31
#2E1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1785
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1785#FFFFFF#000000##FFFFFF
##2E17851.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002B83
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1785;
/* rgb */ color: rgb(46, 23, 133);
/* oklch */ color: oklch(32.6% 0.167 281.4);
Tailwind
colors: {
  custom: {
    50: '#7458aa',
    500: '#2e1785',
    950: '#000000',
  },
}
SCSS
$custom: #2e1785;
$custom-light: #7458aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1785",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 252.545,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32567,
    "c": 0.16717,
    "h": 281.4
  },
  "luminance": 0.02887
}

Semantic roles & 50–950 ramp

primary
#2E1785
secondary
#9FB93F
accent
#ED3BC8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1785

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

Preview Lab → · Contrast checker → · Palette generator →

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