#2E215E#2E215E

#2E215E is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.1% C 0.104 H 288.4°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#2E215E
RGBrgb(46, 33, 94)
HSLhsl(253, 48%, 25%)
HSVhsv(253, 65%, 37%)
CMYKcmyk(51.1%, 64.9%, 0%, 63.1%)
CIE-LABlab(17.81, 23.57, -34.49)
CIE-LCHlch(17.81, 41.77, 304.35°)
OKLaboklab(30.14% 0.0327 -0.0986)
OKLCHoklch(30.14% 0.104 288.4)
XYZxyz(3.6904, 2.4766, 10.8711)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E215E #515E21
analogous
#21335E #2E215E #4D215E
triadic
#2E215E #5E2E21 #215E2E
tetradic
#2E215E #5E2133 #515E21 #215E4D
square
#2E215E #5E2133 #515E21 #215E4D
split-complementary
#2E215E #5E4D21 #335E21
monochromatic
#0B0817 #181131 #2E215E #44318B #5A41B9

Accessibility & contrast

On white

14.04
#2E215E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2E215E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E215E
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E215E#FFFFFF#000000##FFFFFF
##2E215E1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#1E2F3C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e215e;
/* rgb */ color: rgb(46, 33, 94);
/* oklch */ color: oklch(30.1% 0.104 288.4);
Tailwind
colors: {
  custom: {
    50: '#6b5d8c',
    500: '#2e215e',
    950: '#000000',
  },
}
SCSS
$custom: #2e215e;
$custom-light: #6b5d8c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e215e",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 94
  },
  "hsl": {
    "h": 252.787,
    "s": 48.031,
    "l": 24.902
  },
  "oklch": {
    "l": 0.3014,
    "c": 0.10389,
    "h": 288.4
  },
  "luminance": 0.02477
}

Semantic roles & 50–950 ramp

primary
#2E215E
secondary
#839249
accent
#D850BB
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2E215E

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

Preview Lab → · Contrast checker → · Palette generator →

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