#2E1550#2E1550

#2E1550 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.103 H 298.7°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#2E1550
RGBrgb(46, 21, 80)
HSLhsl(265, 58%, 20%)
HSVhsv(265, 74%, 31%)
CMYKcmyk(42.5%, 73.7%, 0%, 68.6%)
CIE-LABlab(13.81, 26.73, -31.55)
CIE-LCHlch(13.81, 41.35, 310.27°)
OKLaboklab(26.87% 0.0492 -0.09)
OKLCHoklch(26.87% 0.103 298.7)
XYZxyz(2.8425, 1.6963, 7.7655)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1550 #375015
analogous
#151950 #2E1550 #4C1550
triadic
#2E1550 #502E15 #15502E
tetradic
#2E1550 #501519 #375015 #15504C
square
#2E1550 #501519 #375015 #15504C
split-complementary
#2E1550 #504C15 #195015
monochromatic
#0E0618 #120820 #2E1550 #4A2280 #662EB1

Accessibility & contrast

On white

15.68
#2E1550 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1550
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1550#FFFFFF#000000##FFFFFF
##2E15501.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002352
Deuteranopia (green-blind)
#00234F
Tritanopia (blue-blind)
#262330
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1550;
/* rgb */ color: rgb(46, 21, 80);
/* oklch */ color: oklch(26.9% 0.103 298.7);
Tailwind
colors: {
  custom: {
    50: '#6a5482',
    500: '#2e1550',
    950: '#000000',
  },
}
SCSS
$custom: #2e1550;
$custom-light: #6a5482;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1550",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 80
  },
  "hsl": {
    "h": 265.424,
    "s": 58.416,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26866,
    "c": 0.10255,
    "h": 298.7
  },
  "luminance": 0.01696
}

Semantic roles & 50–950 ramp

primary
#2E1550
secondary
#668839
accent
#E246A0
background
#F6F4F8
surface
#EBE8EF
border
#C6C4CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E1550

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

Preview Lab → · Contrast checker → · Palette generator →

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