#2E1352#2E1352

#2E1352 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.108 H 298.3°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#2E1352
RGBrgb(46, 19, 82)
HSLhsl(266, 62%, 20%)
HSVhsv(266, 77%, 32%)
CMYKcmyk(43.9%, 76.8%, 0%, 67.8%)
CIE-LABlab(13.57, 28.48, -33.31)
CIE-LCHlch(13.57, 43.82, 310.53°)
OKLaboklab(26.75% 0.0513 -0.0951)
OKLCHoklch(26.75% 0.108 298.3)
XYZxyz(2.8822, 1.6557, 8.1487)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1352 #375213
analogous
#131852 #2E1352 #4D1352
triadic
#2E1352 #522E13 #13522E
tetradic
#2E1352 #521318 #375213 #13524D
square
#2E1352 #521318 #375213 #13524D
split-complementary
#2E1352 #524D13 #185213
monochromatic
#0E0619 #120720 #2E1352 #4A1F84 #662AB5

Accessibility & contrast

On white

15.78
#2E1352 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2E1352 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1352
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1352#FFFFFF#000000##FFFFFF
##2E13521.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#002251
Tritanopia (blue-blind)
#252231
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1352;
/* rgb */ color: rgb(46, 19, 82);
/* oklch */ color: oklch(26.8% 0.108 298.3);
Tailwind
colors: {
  custom: {
    50: '#6b5383',
    500: '#2e1352',
    950: '#000000',
  },
}
SCSS
$custom: #2e1352;
$custom-light: #6b5383;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1352",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 82
  },
  "hsl": {
    "h": 265.714,
    "s": 62.376,
    "l": 19.804
  },
  "oklch": {
    "l": 0.2675,
    "c": 0.10805,
    "h": 298.3
  },
  "luminance": 0.01656
}

Semantic roles & 50–950 ramp

primary
#2E1352
secondary
#668A36
accent
#E542A0
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1352

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

Preview Lab → · Contrast checker → · Palette generator →

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