#2E216D#2E216D

#2E216D is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.5% C 0.125 H 284.4°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#2E216D
RGBrgb(46, 33, 109)
HSLhsl(250, 54%, 28%)
HSVhsv(250, 70%, 43%)
CMYKcmyk(57.8%, 69.7%, 0%, 57.3%)
CIE-LABlab(19.11, 28.61, -42.22)
CIE-LCHlch(19.11, 51.00, 304.12°)
OKLaboklab(31.49% 0.0312 -0.1213)
OKLCHoklch(31.49% 0.125 284.4)
XYZxyz(4.4300, 2.7724, 14.7667)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E216D #606D21
analogous
#213A6D #2E216D #54216D
triadic
#2E216D #6D2E21 #216D2E
tetradic
#2E216D #6D213A #606D21 #216D54
square
#2E216D #6D213A #606D21 #216D54
split-complementary
#2E216D #6D5421 #3A6D21
monochromatic
#0A0717 #1A133E #2E216D #422F9C #5942C6

Accessibility & contrast

On white

13.51
#2E216D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2E216D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E216D
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E216D#FFFFFF#000000##FFFFFF
##2E216D1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#113444
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e216d;
/* rgb */ color: rgb(46, 33, 109);
/* oklch */ color: oklch(31.5% 0.125 284.4);
Tailwind
colors: {
  custom: {
    50: '#6e5d98',
    500: '#2e216d',
    950: '#000000',
  },
}
SCSS
$custom: #2e216d;
$custom-light: #6e5d98;
$custom-dark: #000000;
JSON
{
  "hex": "#2e216d",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 109
  },
  "hsl": {
    "h": 250.263,
    "s": 53.521,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31488,
    "c": 0.12529,
    "h": 284.4
  },
  "luminance": 0.02773
}

Semantic roles & 50–950 ramp

primary
#2E216D
secondary
#92A149
accent
#DD4BC4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2E216D

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

Preview Lab → · Contrast checker → · Palette generator →

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