#2E1889#2E1889

#2E1889 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.171 H 280.5°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#2E1889
RGBrgb(46, 24, 137)
HSLhsl(252, 70%, 32%)
HSVhsv(252, 82%, 54%)
CMYKcmyk(66.4%, 82.5%, 0%, 46.3%)
CIE-LABlab(20.20, 42.68, -58.28)
CIE-LCHlch(20.20, 72.24, 306.21°)
OKLaboklab(33.13% 0.0312 -0.1682)
OKLCHoklch(33.13% 0.171 280.5)
XYZxyz(5.9673, 3.0398, 23.9343)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1889 #738918
analogous
#183B89 #2E1889 #671889
triadic
#2E1889 #892E18 #18892E
tetradic
#2E1889 #89183B #738918 #188967
square
#2E1889 #89183B #738918 #188967
split-complementary
#2E1889 #896718 #3B8918
monochromatic
#0B0621 #1D0F55 #2E1889 #3F21BD #5D3EDD

Accessibility & contrast

On white

13.06
#2E1889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1889
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1889#FFFFFF#000000##FFFFFF
##2E18891.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e1889;
/* rgb */ color: rgb(46, 24, 137);
/* oklch */ color: oklch(33.1% 0.171 280.5);
Tailwind
colors: {
  custom: {
    50: '#7559ad',
    500: '#2e1889',
    950: '#000000',
  },
}
SCSS
$custom: #2e1889;
$custom-light: #7559ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1889",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 251.681,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3313,
    "c": 0.1711,
    "h": 280.5
  },
  "luminance": 0.0304
}

Semantic roles & 50–950 ramp

primary
#2E1889
secondary
#A4BD40
accent
#ED3BCA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1889

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

Preview Lab → · Contrast checker → · Palette generator →

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