#2E1E77#2E1E77

#2E1E77 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.143 H 283.0°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#2E1E77
RGBrgb(46, 30, 119)
HSLhsl(251, 60%, 29%)
HSVhsv(251, 75%, 47%)
CMYKcmyk(61.3%, 74.8%, 0%, 53.3%)
CIE-LABlab(19.40, 33.77, -48.20)
CIE-LCHlch(19.40, 58.86, 305.01°)
OKLaboklab(31.99% 0.0321 -0.1389)
OKLCHoklch(31.99% 0.143 283)
XYZxyz(4.9197, 2.8410, 17.7383)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E77 #67771E
analogous
#1E3A77 #2E1E77 #5B1E77
triadic
#2E1E77 #772E1E #1E772E
tetradic
#2E1E77 #771E3A #67771E #1E775B
square
#2E1E77 #771E3A #67771E #1E775B
split-complementary
#2E1E77 #775B1E #3A771E
monochromatic
#090618 #1B1246 #2E1E77 #412AA8 #5A40CF

Accessibility & contrast

On white

13.39
#2E1E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2E1E77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E77
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E77#FFFFFF#000000##FFFFFF
##2E1E771.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#002C75
Tritanopia (blue-blind)
#013648
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1e77;
/* rgb */ color: rgb(46, 30, 119);
/* oklch */ color: oklch(32.0% 0.143 283.0);
Tailwind
colors: {
  custom: {
    50: '#705c9f',
    500: '#2e1e77',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e77;
$custom-light: #705c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e77",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 119
  },
  "hsl": {
    "h": 250.787,
    "s": 59.732,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31987,
    "c": 0.14254,
    "h": 283
  },
  "luminance": 0.02841
}

Semantic roles & 50–950 ramp

primary
#2E1E77
secondary
#99AB46
accent
#E345C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2E1E77

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

Preview Lab → · Contrast checker → · Palette generator →

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