#2E1556#2E1556

#2E1556 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.110 H 295.8°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#2E1556
RGBrgb(46, 21, 86)
HSLhsl(263, 61%, 21%)
HSVhsv(263, 76%, 34%)
CMYKcmyk(46.5%, 75.6%, 0%, 66.3%)
CIE-LABlab(14.34, 28.54, -34.77)
CIE-LCHlch(14.34, 44.98, 309.38°)
OKLaboklab(27.41% 0.0482 -0.0994)
OKLCHoklch(27.41% 0.11 295.8)
XYZxyz(3.0741, 1.7890, 8.9856)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1556 #3D5615
analogous
#151C56 #2E1556 #4E1556
triadic
#2E1556 #562E15 #15562E
tetradic
#2E1556 #56151C #3D5615 #15564E
square
#2E1556 #56151C #3D5615 #15564E
split-complementary
#2E1556 #564E15 #1C5615
monochromatic
#0D0619 #140925 #2E1556 #482187 #632DB8

Accessibility & contrast

On white

15.47
#2E1556 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1556
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1556#FFFFFF#000000##FFFFFF
##2E15561.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#232533
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e1556;
/* rgb */ color: rgb(46, 21, 86);
/* oklch */ color: oklch(27.4% 0.110 295.8);
Tailwind
colors: {
  custom: {
    50: '#6b5486',
    500: '#2e1556',
    950: '#000000',
  },
}
SCSS
$custom: #2e1556;
$custom-light: #6b5486;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1556",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 86
  },
  "hsl": {
    "h": 263.077,
    "s": 60.748,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27414,
    "c": 0.11047,
    "h": 295.8
  },
  "luminance": 0.01789
}

Semantic roles & 50–950 ramp

primary
#2E1556
secondary
#6D8E39
accent
#E444A6
background
#F6F5F8
surface
#EBE8EF
border
#C6C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1556

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

Preview Lab → · Contrast checker → · Palette generator →

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