#2E1777#2E1777

#2E1777 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.150 H 284.5°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#2E1777
RGBrgb(46, 23, 119)
HSLhsl(254, 68%, 28%)
HSVhsv(254, 81%, 47%)
CMYKcmyk(61.3%, 80.7%, 0%, 53.3%)
CIE-LABlab(18.03, 37.63, -50.45)
CIE-LCHlch(18.03, 62.94, 306.72°)
OKLaboklab(31.03% 0.0375 -0.1454)
OKLCHoklch(31.03% 0.15 284.5)
XYZxyz(4.7619, 2.5252, 17.6857)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1777 #607717
analogous
#173077 #2E1777 #5E1777
triadic
#2E1777 #772E17 #17772E
tetradic
#2E1777 #771730 #607717 #17775E
square
#2E1777 #771730 #607717 #17775E
split-complementary
#2E1777 #775E17 #307717
monochromatic
#0A051A #1A0D44 #2E1777 #4221AA #5931D7

Accessibility & contrast

On white

13.95
#2E1777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2E1777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1777
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1777#FFFFFF#000000##FFFFFF
##2E17771.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002975
Tritanopia (blue-blind)
#023346
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1777;
/* rgb */ color: rgb(46, 23, 119);
/* oklch */ color: oklch(31.0% 0.150 284.5);
Tailwind
colors: {
  custom: {
    50: '#71579f',
    500: '#2e1777',
    950: '#000000',
  },
}
SCSS
$custom: #2e1777;
$custom-light: #71579f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1777",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 254.375,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31027,
    "c": 0.15012,
    "h": 284.5
  },
  "luminance": 0.02526
}

Semantic roles & 50–950 ramp

primary
#2E1777
secondary
#92AC3E
accent
#EA3DC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2E1777

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

Preview Lab → · Contrast checker → · Palette generator →

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