#2E1554#2E1554

#2E1554 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.108 H 296.8°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#2E1554
RGBrgb(46, 21, 84)
HSLhsl(264, 60%, 21%)
HSVhsv(264, 75%, 33%)
CMYKcmyk(45.2%, 75%, 0%, 67.1%)
CIE-LABlab(14.16, 27.93, -33.71)
CIE-LCHlch(14.16, 43.77, 309.65°)
OKLaboklab(27.23% 0.0485 -0.0963)
OKLCHoklch(27.23% 0.108 296.8)
XYZxyz(2.9947, 1.7572, 8.5672)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1554 #3B5415
analogous
#151B54 #2E1554 #4D1554
triadic
#2E1554 #542E15 #15542E
tetradic
#2E1554 #54151B #3B5415 #15544D
square
#2E1554 #54151B #3B5415 #15544D
split-complementary
#2E1554 #544D15 #1B5415
monochromatic
#0D0618 #130923 #2E1554 #492185 #642DB6

Accessibility & contrast

On white

15.54
#2E1554 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2E1554 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1554
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1554#FFFFFF#000000##FFFFFF
##2E15541.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002456
Deuteranopia (green-blind)
#002353
Tritanopia (blue-blind)
#242432
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e1554;
/* rgb */ color: rgb(46, 21, 84);
/* oklch */ color: oklch(27.2% 0.108 296.8);
Tailwind
colors: {
  custom: {
    50: '#6b5485',
    500: '#2e1554',
    950: '#000000',
  },
}
SCSS
$custom: #2e1554;
$custom-light: #6b5485;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1554",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 84
  },
  "hsl": {
    "h": 263.81,
    "s": 60,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27228,
    "c": 0.10784,
    "h": 296.8
  },
  "luminance": 0.01757
}

Semantic roles & 50–950 ramp

primary
#2E1554
secondary
#6B8C39
accent
#E345A4
background
#F6F4F8
surface
#EBE8EF
border
#C6C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1554

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

Preview Lab → · Contrast checker → · Palette generator →

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