#2E1159#2E1159

#2E1159 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.119 H 295.6°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#2E1159
RGBrgb(46, 17, 89)
HSLhsl(264, 68%, 21%)
HSVhsv(264, 81%, 35%)
CMYKcmyk(48.3%, 80.9%, 0%, 65.1%)
CIE-LABlab(13.84, 31.63, -37.60)
CIE-LCHlch(13.84, 49.13, 310.07°)
OKLaboklab(27.15% 0.0516 -0.1077)
OKLCHoklch(27.15% 0.119 295.6)
XYZxyz(3.1299, 1.7029, 9.6131)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1159 #3C5911
analogous
#111859 #2E1159 #521159
triadic
#2E1159 #592E11 #11592E
tetradic
#2E1159 #591118 #3C5911 #115952
square
#2E1159 #591118 #3C5911 #115952
split-complementary
#2E1159 #595211 #185911
monochromatic
#0D051A #130726 #2E1159 #491B8C #6325C0

Accessibility & contrast

On white

15.66
#2E1159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2E1159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1159
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1159#FFFFFF#000000##FFFFFF
##2E11591.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245B
Deuteranopia (green-blind)
#002258
Tritanopia (blue-blind)
#222434
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1159;
/* rgb */ color: rgb(46, 17, 89);
/* oklch */ color: oklch(27.2% 0.119 295.6);
Tailwind
colors: {
  custom: {
    50: '#6c5289',
    500: '#2e1159',
    950: '#000000',
  },
}
SCSS
$custom: #2e1159;
$custom-light: #6c5289;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1159",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 264.167,
    "s": 67.925,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27152,
    "c": 0.11945,
    "h": 295.6
  },
  "luminance": 0.01703
}

Semantic roles & 50–950 ramp

primary
#2E1159
secondary
#6C9234
accent
#EB3DA5
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1159

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

Preview Lab → · Contrast checker → · Palette generator →

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