#2E1761#2E1761

#2E1761 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.8% C 0.122 H 290.9°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#2E1761
RGBrgb(46, 23, 97)
HSLhsl(259, 62%, 24%)
HSVhsv(259, 76%, 38%)
CMYKcmyk(52.6%, 76.3%, 0%, 62%)
CIE-LABlab(15.78, 30.77, -39.78)
CIE-LCHlch(15.78, 50.30, 307.72°)
OKLaboklab(28.76% 0.0436 -0.1142)
OKLCHoklch(28.76% 0.122 290.9)
XYZxyz(3.5902, 2.0566, 11.5147)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1761 #4A6117
analogous
#172561 #2E1761 #531761
triadic
#2E1761 #612E17 #17612E
tetradic
#2E1761 #611725 #4A6117 #176153
square
#2E1761 #611725 #4A6117 #176153
split-complementary
#2E1761 #615317 #256117
monochromatic
#0C0619 #170B30 #2E1761 #452392 #5D2EC4

Accessibility & contrast

On white

14.88
#2E1761 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2E1761 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1761
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1761#FFFFFF#000000##FFFFFF
##2E17611.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002963
Deuteranopia (green-blind)
#002660
Tritanopia (blue-blind)
#1D2A3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e1761;
/* rgb */ color: rgb(46, 23, 97);
/* oklch */ color: oklch(28.8% 0.122 290.9);
Tailwind
colors: {
  custom: {
    50: '#6d568f',
    500: '#2e1761',
    950: '#000000',
  },
}
SCSS
$custom: #2e1761;
$custom-light: #6d568f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1761",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 97
  },
  "hsl": {
    "h": 258.649,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28759,
    "c": 0.1222,
    "h": 290.9
  },
  "luminance": 0.02057
}

Semantic roles & 50–950 ramp

primary
#2E1761
secondary
#7B983C
accent
#E543B2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E1761

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

Preview Lab → · Contrast checker → · Palette generator →

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