#2E1990#2E1990

#2E1990 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.179 H 279.2°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#2E1990
RGBrgb(46, 25, 144)
HSLhsl(251, 70%, 33%)
HSVhsv(251, 83%, 56%)
CMYKcmyk(68.1%, 82.6%, 0%, 43.5%)
CIE-LABlab(21.17, 44.34, -61.06)
CIE-LCHlch(21.17, 75.46, 305.99°)
OKLaboklab(34.03% 0.0284 -0.1763)
OKLCHoklch(34.03% 0.179 279.2)
XYZxyz(6.5068, 3.2892, 26.6721)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1990 #7B9019
analogous
#194090 #2E1990 #691990
triadic
#2E1990 #902E19 #19902E
tetradic
#2E1990 #901940 #7B9019 #199069
square
#2E1990 #901940 #7B9019 #199069
split-complementary
#2E1990 #906919 #409019
monochromatic
#0D0728 #1D105C #2E1990 #3F22C4 #6045DF

Accessibility & contrast

On white

12.67
#2E1990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2E1990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1990
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1990#FFFFFF#000000##FFFFFF
##2E19901.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#002E8E
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e1990;
/* rgb */ color: rgb(46, 25, 144);
/* oklch */ color: oklch(34.0% 0.179 279.2);
Tailwind
colors: {
  custom: {
    50: '#765ab2',
    500: '#2e1990',
    950: '#000000',
  },
}
SCSS
$custom: #2e1990;
$custom-light: #765ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1990",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 144
  },
  "hsl": {
    "h": 250.588,
    "s": 70.414,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34033,
    "c": 0.1786,
    "h": 279.2
  },
  "luminance": 0.0329
}

Semantic roles & 50–950 ramp

primary
#2E1990
secondary
#AAC045
accent
#ED3BCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1990

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

Preview Lab → · Contrast checker → · Palette generator →

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