#2E216F#2E216F

#2E216F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.7% C 0.128 H 284.0°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#2E216F
RGBrgb(46, 33, 111)
HSLhsl(250, 54%, 28%)
HSVhsv(250, 70%, 44%)
CMYKcmyk(58.6%, 70.3%, 0%, 56.5%)
CIE-LABlab(19.29, 29.28, -43.22)
CIE-LCHlch(19.29, 52.21, 304.12°)
OKLaboklab(31.68% 0.0309 -0.1243)
OKLCHoklch(31.68% 0.128 284)
XYZxyz(4.5389, 2.8160, 15.3402)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E216F #626F21
analogous
#213B6F #2E216F #55216F
triadic
#2E216F #6F2E21 #216F2E
tetradic
#2E216F #6F213B #626F21 #216F55
square
#2E216F #6F213B #626F21 #216F55
split-complementary
#2E216F #6F5521 #3B6F21
monochromatic
#0A0718 #1A1340 #2E216F #422F9E #5943C7

Accessibility & contrast

On white

13.43
#2E216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E216F
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E216F#FFFFFF#000000##FFFFFF
##2E216F1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#0F3545
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e216f;
/* rgb */ color: rgb(46, 33, 111);
/* oklch */ color: oklch(31.7% 0.128 284.0);
Tailwind
colors: {
  custom: {
    50: '#6e5d99',
    500: '#2e216f',
    950: '#000000',
  },
}
SCSS
$custom: #2e216f;
$custom-light: #6e5d99;
$custom-dark: #000000;
JSON
{
  "hex": "#2e216f",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 250,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31677,
    "c": 0.12806,
    "h": 284
  },
  "luminance": 0.02816
}

Semantic roles & 50–950 ramp

primary
#2E216F
secondary
#94A349
accent
#DE4AC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E216F

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

Preview Lab → · Contrast checker → · Palette generator →

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