#2E16A1#2E16A1

#2E16A1 is a dark, highly saturated violet. Relative luminance 0.037; OKLCH L 35.7% C 0.201 H 276.9°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#2E16A1
RGBrgb(46, 22, 161)
HSLhsl(250, 76%, 36%)
HSVhsv(250, 86%, 63%)
CMYKcmyk(71.4%, 86.3%, 0%, 36.9%)
CIE-LABlab(22.75, 50.68, -68.90)
CIE-LCHlch(22.75, 85.53, 306.33°)
OKLaboklab(35.71% 0.024 -0.199)
OKLCHoklch(35.71% 0.201 276.9)
XYZxyz(7.8446, 3.7271, 34.0173)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E16A1 #89A116
analogous
#1643A1 #2E16A1 #7316A1
triadic
#2E16A1 #A12E16 #16A12E
tetradic
#2E16A1 #A11643 #89A116 #16A173
square
#2E16A1 #A11643 #89A116 #16A173
split-complementary
#2E16A1 #A17316 #43A116
monochromatic
#0F0735 #1F0F6B #2E16A1 #3D1DD7 #664BE6

Accessibility & contrast

On white

12.03
#2E16A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2E16A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E16A1
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E16A1#FFFFFF#000000##FFFFFF
##2E16A11.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e16a1;
/* rgb */ color: rgb(46, 22, 161);
/* oklch */ color: oklch(35.7% 0.201 276.9);
Tailwind
colors: {
  custom: {
    50: '#7a5abe',
    500: '#2e16a1',
    950: '#000000',
  },
}
SCSS
$custom: #2e16a1;
$custom-light: #7a5abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2e16a1",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 161
  },
  "hsl": {
    "h": 250.36,
    "s": 75.956,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35707,
    "c": 0.2005,
    "h": 276.9
  },
  "luminance": 0.03728
}

Semantic roles & 50–950 ramp

primary
#2E16A1
secondary
#B2C84B
accent
#F335D2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2E16A1

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

Preview Lab → · Contrast checker → · Palette generator →

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