#2E1559#2E1559

#2E1559 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.114 H 294.5°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#2E1559
RGBrgb(46, 21, 89)
HSLhsl(262, 62%, 22%)
HSVhsv(262, 76%, 35%)
CMYKcmyk(48.3%, 76.4%, 0%, 65.1%)
CIE-LABlab(14.62, 29.45, -36.34)
CIE-LCHlch(14.62, 46.77, 309.02°)
OKLaboklab(27.7% 0.0475 -0.104)
OKLCHoklch(27.7% 0.114 294.5)
XYZxyz(3.1976, 1.8384, 9.6356)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1559 #405915
analogous
#151E59 #2E1559 #501559
triadic
#2E1559 #592E15 #15592E
tetradic
#2E1559 #59151E #405915 #155950
square
#2E1559 #59151E #405915 #155950
split-complementary
#2E1559 #595015 #1E5915
monochromatic
#0D0619 #140927 #2E1559 #48218B #612CBC

Accessibility & contrast

On white

15.36
#2E1559 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2E1559 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1559
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1559#FFFFFF#000000##FFFFFF
##2E15591.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255B
Deuteranopia (green-blind)
#002458
Tritanopia (blue-blind)
#222635
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1559;
/* rgb */ color: rgb(46, 21, 89);
/* oklch */ color: oklch(27.7% 0.114 294.5);
Tailwind
colors: {
  custom: {
    50: '#6c5589',
    500: '#2e1559',
    950: '#000000',
  },
}
SCSS
$custom: #2e1559;
$custom-light: #6c5589;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1559",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 89
  },
  "hsl": {
    "h": 262.059,
    "s": 61.818,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27697,
    "c": 0.11437,
    "h": 294.5
  },
  "luminance": 0.01838
}

Semantic roles & 50–950 ramp

primary
#2E1559
secondary
#709139
accent
#E543A9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1559

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

Preview Lab → · Contrast checker → · Palette generator →

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