#2E1557#2E1557

#2E1557 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.112 H 295.4°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#2E1557
RGBrgb(46, 21, 87)
HSLhsl(263, 61%, 21%)
HSVhsv(263, 76%, 34%)
CMYKcmyk(47.1%, 75.9%, 0%, 65.9%)
CIE-LABlab(14.43, 28.84, -35.29)
CIE-LCHlch(14.43, 45.58, 309.25°)
OKLaboklab(27.51% 0.0479 -0.101)
OKLCHoklch(27.51% 0.112 295.4)
XYZxyz(3.1147, 1.8052, 9.1993)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1557 #3E5715
analogous
#151D57 #2E1557 #4F1557
triadic
#2E1557 #572E15 #15572E
tetradic
#2E1557 #57151D #3E5715 #15574F
square
#2E1557 #57151D #3E5715 #15574F
split-complementary
#2E1557 #574F15 #1D5715
monochromatic
#0D0619 #140926 #2E1557 #482188 #622DBA

Accessibility & contrast

On white

15.43
#2E1557 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2E1557 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1557
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1557#FFFFFF#000000##FFFFFF
##2E15571.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#002356
Tritanopia (blue-blind)
#232534
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e1557;
/* rgb */ color: rgb(46, 21, 87);
/* oklch */ color: oklch(27.5% 0.112 295.4);
Tailwind
colors: {
  custom: {
    50: '#6b5587',
    500: '#2e1557',
    950: '#000000',
  },
}
SCSS
$custom: #2e1557;
$custom-light: #6b5587;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1557",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 87
  },
  "hsl": {
    "h": 262.727,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27507,
    "c": 0.11176,
    "h": 295.4
  },
  "luminance": 0.01805
}

Semantic roles & 50–950 ramp

primary
#2E1557
secondary
#6E8F39
accent
#E444A7
background
#F6F5F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1557

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

Preview Lab → · Contrast checker → · Palette generator →

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