#2E216A#2E216A

#2E216A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.2% C 0.121 H 285.1°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#2E216A
RGBrgb(46, 33, 106)
HSLhsl(251, 53%, 27%)
HSVhsv(251, 69%, 42%)
CMYKcmyk(56.6%, 68.9%, 0%, 58.4%)
CIE-LABlab(18.84, 27.60, -40.71)
CIE-LCHlch(18.84, 49.19, 304.13°)
OKLaboklab(31.21% 0.0316 -0.1169)
OKLCHoklch(31.21% 0.121 285.1)
XYZxyz(4.2713, 2.7089, 13.9307)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E216A #5D6A21
analogous
#21396A #2E216A #53216A
triadic
#2E216A #6A2E21 #216A2E
tetradic
#2E216A #6A2139 #5D6A21 #216A53
square
#2E216A #6A2139 #5D6A21 #216A53
split-complementary
#2E216A #6A5321 #396A21
monochromatic
#0A0717 #1A123B #2E216A #423099 #5941C4

Accessibility & contrast

On white

13.62
#2E216A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2E216A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E216A
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E216A#FFFFFF#000000##FFFFFF
##2E216A1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#153342
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e216a;
/* rgb */ color: rgb(46, 33, 106);
/* oklch */ color: oklch(31.2% 0.121 285.1);
Tailwind
colors: {
  custom: {
    50: '#6d5d95',
    500: '#2e216a',
    950: '#000000',
  },
}
SCSS
$custom: #2e216a;
$custom-light: #6d5d95;
$custom-dark: #000000;
JSON
{
  "hex": "#2e216a",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 106
  },
  "hsl": {
    "h": 250.685,
    "s": 52.518,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31209,
    "c": 0.1211,
    "h": 285.1
  },
  "luminance": 0.02709
}

Semantic roles & 50–950 ramp

primary
#2E216A
secondary
#8F9E49
accent
#DC4CC2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #2E216A

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

Preview Lab → · Contrast checker → · Palette generator →

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