#2E1B77#2E1B77

#2E1B77 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.146 H 283.7°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#2E1B77
RGBrgb(46, 27, 119)
HSLhsl(252, 63%, 29%)
HSVhsv(252, 77%, 47%)
CMYKcmyk(61.3%, 77.3%, 0%, 53.3%)
CIE-LABlab(18.78, 35.49, -49.21)
CIE-LCHlch(18.78, 60.67, 305.80°)
OKLaboklab(31.55% 0.0345 -0.1418)
OKLCHoklch(31.55% 0.146 283.7)
XYZxyz(4.8474, 2.6963, 17.7142)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B77 #64771B
analogous
#1B3677 #2E1B77 #5C1B77
triadic
#2E1B77 #772E1B #1B772E
tetradic
#2E1B77 #771B36 #64771B #1B775C
square
#2E1B77 #771B36 #64771B #1B775C
split-complementary
#2E1B77 #775C1B #36771B
monochromatic
#0A0619 #1B1045 #2E1B77 #4126A9 #5A3AD2

Accessibility & contrast

On white

13.64
#2E1B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2E1B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B77
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B77#FFFFFF#000000##FFFFFF
##2E1B771.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#023547
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e1b77;
/* rgb */ color: rgb(46, 27, 119);
/* oklch */ color: oklch(31.6% 0.146 283.7);
Tailwind
colors: {
  custom: {
    50: '#715a9f',
    500: '#2e1b77',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b77;
$custom-light: #715a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b77",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 252.391,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31554,
    "c": 0.14594,
    "h": 283.7
  },
  "luminance": 0.02697
}

Semantic roles & 50–950 ramp

primary
#2E1B77
secondary
#96AB42
accent
#E642C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2E1B77

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

Preview Lab → · Contrast checker → · Palette generator →

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