#2E216E#2E216E

#2E216E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.6% C 0.127 H 284.2°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#2E216E
RGBrgb(46, 33, 110)
HSLhsl(250, 54%, 28%)
HSVhsv(250, 70%, 43%)
CMYKcmyk(58.2%, 70%, 0%, 56.9%)
CIE-LABlab(19.20, 28.95, -42.72)
CIE-LCHlch(19.20, 51.61, 304.12°)
OKLaboklab(31.58% 0.031 -0.1228)
OKLCHoklch(31.58% 0.127 284.2)
XYZxyz(4.4842, 2.7941, 15.0519)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E216E #616E21
analogous
#213A6E #2E216E #54216E
triadic
#2E216E #6E2E21 #216E2E
tetradic
#2E216E #6E213A #616E21 #216E54
square
#2E216E #6E213A #616E21 #216E54
split-complementary
#2E216E #6E5421 #3A6E21
monochromatic
#0A0718 #1A133F #2E216E #422F9D #5943C7

Accessibility & contrast

On white

13.47
#2E216E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2E216E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E216E
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E216E#FFFFFF#000000##FFFFFF
##2E216E1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#103544
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e216e;
/* rgb */ color: rgb(46, 33, 110);
/* oklch */ color: oklch(31.6% 0.127 284.2);
Tailwind
colors: {
  custom: {
    50: '#6e5d98',
    500: '#2e216e',
    950: '#000000',
  },
}
SCSS
$custom: #2e216e;
$custom-light: #6e5d98;
$custom-dark: #000000;
JSON
{
  "hex": "#2e216e",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 110
  },
  "hsl": {
    "h": 250.13,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31582,
    "c": 0.12668,
    "h": 284.2
  },
  "luminance": 0.02794
}

Semantic roles & 50–950 ramp

primary
#2E216E
secondary
#93A249
accent
#DD4BC4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2E216E

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

Preview Lab → · Contrast checker → · Palette generator →

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