#2E1690#2E1690

#2E1690 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.181 H 279.5°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#2E1690
RGBrgb(46, 22, 144)
HSLhsl(252, 73%, 33%)
HSVhsv(252, 85%, 56%)
CMYKcmyk(68.1%, 84.7%, 0%, 43.5%)
CIE-LABlab(20.70, 45.70, -61.83)
CIE-LCHlch(20.70, 76.88, 306.47°)
OKLaboklab(33.71% 0.0298 -0.1785)
OKLCHoklch(33.71% 0.181 279.5)
XYZxyz(6.4461, 3.1677, 26.6519)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1690 #789016
analogous
#163B90 #2E1690 #6B1690
triadic
#2E1690 #902E16 #16902E
tetradic
#2E1690 #90163B #789016 #16906B
square
#2E1690 #90163B #789016 #16906B
split-complementary
#2E1690 #906B16 #3B9016
monochromatic
#0C0626 #1D0E5B #2E1690 #3F1EC5 #5F3FE2

Accessibility & contrast

On white

12.86
#2E1690 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2E1690 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1690
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1690#FFFFFF#000000##FFFFFF
##2E16901.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003693
Deuteranopia (green-blind)
#002D8E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e1690;
/* rgb */ color: rgb(46, 22, 144);
/* oklch */ color: oklch(33.7% 0.181 279.5);
Tailwind
colors: {
  custom: {
    50: '#7659b2',
    500: '#2e1690',
    950: '#000000',
  },
}
SCSS
$custom: #2e1690;
$custom-light: #7659b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1690",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 144
  },
  "hsl": {
    "h": 251.803,
    "s": 73.494,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33714,
    "c": 0.18098,
    "h": 279.5
  },
  "luminance": 0.03168
}

Semantic roles & 50–950 ramp

primary
#2E1690
secondary
#A8C240
accent
#F038CC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1690

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

Preview Lab → · Contrast checker → · Palette generator →

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