#2E1987#2E1987

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

Color values

HEX#2E1987
RGBrgb(46, 25, 135)
HSLhsl(251, 69%, 31%)
HSVhsv(251, 81%, 53%)
CMYKcmyk(65.9%, 81.5%, 0%, 47.1%)
CIE-LABlab(20.14, 41.58, -57.13)
CIE-LCHlch(20.14, 70.66, 306.05°)
OKLaboklab(33.02% 0.0312 -0.1649)
OKLCHoklch(33.02% 0.168 280.7)
XYZxyz(5.8461, 3.0249, 23.1928)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1987 #728719
analogous
#193B87 #2E1987 #651987
triadic
#2E1987 #872E19 #19872E
tetradic
#2E1987 #87193B #728719 #198765
square
#2E1987 #87193B #728719 #198765
split-complementary
#2E1987 #876519 #3B8719
monochromatic
#0B0620 #1C0F53 #2E1987 #4023BB #5D3FDB

Accessibility & contrast

On white

13.08
#2E1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1987
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1987#FFFFFF#000000##FFFFFF
##2E19871.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e1987;
/* rgb */ color: rgb(46, 25, 135);
/* oklch */ color: oklch(33.0% 0.168 280.7);
Tailwind
colors: {
  custom: {
    50: '#745aab',
    500: '#2e1987',
    950: '#000000',
  },
}
SCSS
$custom: #2e1987;
$custom-light: #745aab;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1987",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 251.455,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33022,
    "c": 0.16781,
    "h": 280.7
  },
  "luminance": 0.03025
}

Semantic roles & 50–950 ramp

primary
#2E1987
secondary
#A3BA41
accent
#EC3CCA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1987

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

Preview Lab → · Contrast checker → · Palette generator →

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