#2E16A0#2E16A0

#2E16A0 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.199 H 277.0°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#2E16A0
RGBrgb(46, 22, 160)
HSLhsl(250, 76%, 36%)
HSVhsv(250, 86%, 63%)
CMYKcmyk(71.2%, 86.3%, 0%, 37.3%)
CIE-LABlab(22.63, 50.39, -68.50)
CIE-LCHlch(22.63, 85.03, 306.34°)
OKLaboklab(35.59% 0.0244 -0.1979)
OKLCHoklch(35.59% 0.199 277)
XYZxyz(7.7567, 3.6920, 33.5547)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E16A0 #88A016
analogous
#1643A0 #2E16A0 #7316A0
triadic
#2E16A0 #A02E16 #16A02E
tetradic
#2E16A0 #A01643 #88A016 #16A073
square
#2E16A0 #A01643 #88A016 #16A073
split-complementary
#2E16A0 #A07316 #43A016
monochromatic
#0F0734 #1F0F6A #2E16A0 #3D1DD6 #654AE6

Accessibility & contrast

On white

12.08
#2E16A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2E16A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E16A0
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E16A0#FFFFFF#000000##FFFFFF
##2E16A01.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA4
Deuteranopia (green-blind)
#00309E
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e16a0;
/* rgb */ color: rgb(46, 22, 160);
/* oklch */ color: oklch(35.6% 0.199 277.0);
Tailwind
colors: {
  custom: {
    50: '#7a5abe',
    500: '#2e16a0',
    950: '#000000',
  },
}
SCSS
$custom: #2e16a0;
$custom-light: #7a5abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2e16a0",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 160
  },
  "hsl": {
    "h": 250.435,
    "s": 75.824,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35588,
    "c": 0.19936,
    "h": 277
  },
  "luminance": 0.03693
}

Semantic roles & 50–950 ramp

primary
#2E16A0
secondary
#B2C84A
accent
#F235D2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2E16A0

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

Preview Lab → · Contrast checker → · Palette generator →

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