#2E1551#2E1551

#2E1551 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.104 H 298.2°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#2E1551
RGBrgb(46, 21, 81)
HSLhsl(265, 59%, 20%)
HSVhsv(265, 74%, 32%)
CMYKcmyk(43.2%, 74.1%, 0%, 68.2%)
CIE-LABlab(13.89, 27.03, -32.09)
CIE-LCHlch(13.89, 41.96, 310.10°)
OKLaboklab(26.96% 0.0491 -0.0916)
OKLCHoklch(26.96% 0.104 298.2)
XYZxyz(2.8797, 1.7112, 7.9616)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1551 #385115
analogous
#151A51 #2E1551 #4C1551
triadic
#2E1551 #512E15 #15512E
tetradic
#2E1551 #51151A #385115 #15514C
square
#2E1551 #51151A #385115 #15514C
split-complementary
#2E1551 #514C15 #1A5115
monochromatic
#0E0618 #120820 #2E1551 #4A2282 #652EB2

Accessibility & contrast

On white

15.65
#2E1551 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2E1551 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1551
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1551#FFFFFF#000000##FFFFFF
##2E15511.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002353
Deuteranopia (green-blind)
#002350
Tritanopia (blue-blind)
#262331
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1551;
/* rgb */ color: rgb(46, 21, 81);
/* oklch */ color: oklch(27.0% 0.104 298.2);
Tailwind
colors: {
  custom: {
    50: '#6a5482',
    500: '#2e1551',
    950: '#000000',
  },
}
SCSS
$custom: #2e1551;
$custom-light: #6a5482;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1551",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 81
  },
  "hsl": {
    "h": 265,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.26955,
    "c": 0.10388,
    "h": 298.2
  },
  "luminance": 0.01711
}

Semantic roles & 50–950 ramp

primary
#2E1551
secondary
#688939
accent
#E246A1
background
#F6F4F8
surface
#EBE8EF
border
#C6C4CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E1551

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

Preview Lab → · Contrast checker → · Palette generator →

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