#2E1157#2E1157

#2E1157 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.117 H 296.5°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#2E1157
RGBrgb(46, 17, 87)
HSLhsl(265, 67%, 20%)
HSVhsv(265, 80%, 34%)
CMYKcmyk(47.1%, 80.5%, 0%, 65.9%)
CIE-LABlab(13.65, 31.04, -36.57)
CIE-LCHlch(13.65, 47.96, 310.32°)
OKLaboklab(26.95% 0.0522 -0.1047)
OKLCHoklch(26.95% 0.117 296.5)
XYZxyz(3.0470, 1.6698, 9.1767)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1157 #3A5711
analogous
#111757 #2E1157 #511157
triadic
#2E1157 #572E11 #11572E
tetradic
#2E1157 #571117 #3A5711 #115751
square
#2E1157 #571117 #3A5711 #115751
split-complementary
#2E1157 #575111 #175711
monochromatic
#0E051A #130724 #2E1157 #491B8A #6425BD

Accessibility & contrast

On white

15.74
#2E1157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2E1157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1157
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1157#FFFFFF#000000##FFFFFF
##2E11571.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002359
Deuteranopia (green-blind)
#002256
Tritanopia (blue-blind)
#232333
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1157;
/* rgb */ color: rgb(46, 17, 87);
/* oklch */ color: oklch(27.0% 0.117 296.5);
Tailwind
colors: {
  custom: {
    50: '#6c5287',
    500: '#2e1157',
    950: '#000000',
  },
}
SCSS
$custom: #2e1157;
$custom-light: #6c5287;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1157",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 264.857,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26954,
    "c": 0.11697,
    "h": 296.5
  },
  "luminance": 0.0167
}

Semantic roles & 50–950 ramp

primary
#2E1157
secondary
#6A9034
accent
#EA3EA3
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1157

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

Preview Lab → · Contrast checker → · Palette generator →

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