#2E1D52#2E1D52

#2E1D52 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.4% C 0.093 H 294.5°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#2E1D52
RGBrgb(46, 29, 82)
HSLhsl(259, 48%, 22%)
HSVhsv(259, 65%, 32%)
CMYKcmyk(43.9%, 64.6%, 0%, 67.8%)
CIE-LABlab(15.84, 22.30, -29.62)
CIE-LCHlch(15.84, 37.07, 306.98°)
OKLaboklab(28.4% 0.0385 -0.0843)
OKLCHoklch(28.4% 0.093 294.5)
XYZxyz(3.0887, 2.0687, 8.2176)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D52 #41521D
analogous
#1D2752 #2E1D52 #491D52
triadic
#2E1D52 #522E1D #1D522E
tetradic
#2E1D52 #521D27 #41521D #1D5249
square
#2E1D52 #521D27 #41521D #1D5249
split-complementary
#2E1D52 #52491D #27521D
monochromatic
#0D0817 #150D25 #2E1D52 #472D7F #613DAC

Accessibility & contrast

On white

14.85
#2E1D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2E1D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1D52
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D52#FFFFFF#000000##FFFFFF
##2E1D521.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#052751
Tritanopia (blue-blind)
#252934
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e1d52;
/* rgb */ color: rgb(46, 29, 82);
/* oklch */ color: oklch(28.4% 0.093 294.5);
Tailwind
colors: {
  custom: {
    50: '#6a5a83',
    500: '#2e1d52',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d52;
$custom-light: #6a5a83;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d52",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 82
  },
  "hsl": {
    "h": 259.245,
    "s": 47.748,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28395,
    "c": 0.09267,
    "h": 294.5
  },
  "luminance": 0.02069
}

Semantic roles & 50–950 ramp

primary
#2E1D52
secondary
#728744
accent
#D750AC
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E1D52

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

Preview Lab → · Contrast checker → · Palette generator →

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