#2E1566#2E1566

#2E1566 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.131 H 289.7°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#2E1566
RGBrgb(46, 21, 102)
HSLhsl(259, 66%, 24%)
HSVhsv(259, 79%, 40%)
CMYKcmyk(54.9%, 79.4%, 0%, 60%)
CIE-LABlab(15.88, 33.43, -42.92)
CIE-LCHlch(15.88, 54.41, 307.91°)
OKLaboklab(28.98% 0.0442 -0.1233)
OKLCHoklch(28.98% 0.131 289.7)
XYZxyz(3.7925, 2.0763, 12.7687)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1566 #4D6615
analogous
#152466 #2E1566 #571566
triadic
#2E1566 #662E15 #15662E
tetradic
#2E1566 #661524 #4D6615 #156657
square
#2E1566 #661524 #4D6615 #156657
split-complementary
#2E1566 #665715 #246615
monochromatic
#0B0519 #170B33 #2E1566 #451F99 #5C2ACC

Accessibility & contrast

On white

14.84
#2E1566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2E1566 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1566
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1566#FFFFFF#000000##FFFFFF
##2E15661.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#192B3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e1566;
/* rgb */ color: rgb(46, 21, 102);
/* oklch */ color: oklch(29.0% 0.131 289.7);
Tailwind
colors: {
  custom: {
    50: '#6e5592',
    500: '#2e1566',
    950: '#000000',
  },
}
SCSS
$custom: #2e1566;
$custom-light: #6e5592;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1566",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 258.519,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28982,
    "c": 0.13102,
    "h": 289.7
  },
  "luminance": 0.02076
}

Semantic roles & 50–950 ramp

primary
#2E1566
secondary
#7E9D3A
accent
#E93FB4
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1566

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

Preview Lab → · Contrast checker → · Palette generator →

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