#2E1989#2E1989

#2E1989 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.170 H 280.4°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#2E1989
RGBrgb(46, 25, 137)
HSLhsl(251, 69%, 32%)
HSVhsv(251, 82%, 54%)
CMYKcmyk(66.4%, 81.8%, 0%, 46.3%)
CIE-LABlab(20.37, 42.20, -58.01)
CIE-LCHlch(20.37, 71.73, 306.03°)
OKLaboklab(33.25% 0.0306 -0.1674)
OKLCHoklch(33.25% 0.17 280.4)
XYZxyz(5.9883, 3.0818, 23.9413)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1989 #748919
analogous
#193C89 #2E1989 #661989
triadic
#2E1989 #892E19 #19892E
tetradic
#2E1989 #89193C #748919 #198966
square
#2E1989 #89193C #748919 #198966
split-complementary
#2E1989 #896619 #3C8919
monochromatic
#0B0621 #1D1055 #2E1989 #3F22BD #5D40DC

Accessibility & contrast

On white

12.99
#2E1989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2E1989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1989
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1989#FFFFFF#000000##FFFFFF
##2E19891.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1989;
/* rgb */ color: rgb(46, 25, 137);
/* oklch */ color: oklch(33.2% 0.170 280.4);
Tailwind
colors: {
  custom: {
    50: '#745aad',
    500: '#2e1989',
    950: '#000000',
  },
}
SCSS
$custom: #2e1989;
$custom-light: #745aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1989",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 251.25,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33245,
    "c": 0.17023,
    "h": 280.4
  },
  "luminance": 0.03082
}

Semantic roles & 50–950 ramp

primary
#2E1989
secondary
#A5BC41
accent
#EC3CCB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1989

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

Preview Lab → · Contrast checker → · Palette generator →

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