#2E1B75#2E1B75

#2E1B75 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.143 H 284.1°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#2E1B75
RGBrgb(46, 27, 117)
HSLhsl(253, 63%, 28%)
HSVhsv(253, 77%, 46%)
CMYKcmyk(60.7%, 76.9%, 0%, 54.1%)
CIE-LABlab(18.58, 34.85, -48.26)
CIE-LCHlch(18.58, 59.53, 305.83°)
OKLaboklab(31.35% 0.035 -0.139)
OKLCHoklch(31.35% 0.143 284.1)
XYZxyz(4.7285, 2.6488, 17.0883)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B75 #62751B
analogous
#1B3575 #2E1B75 #5B1B75
triadic
#2E1B75 #752E1B #1B752E
tetradic
#2E1B75 #751B35 #62751B #1B755B
square
#2E1B75 #751B35 #62751B #1B755B
split-complementary
#2E1B75 #755B1B #35751B
monochromatic
#0A0619 #1A1043 #2E1B75 #4226A7 #5939D1

Accessibility & contrast

On white

13.73
#2E1B75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2E1B75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B75
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B75#FFFFFF#000000##FFFFFF
##2E1B751.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003078
Deuteranopia (green-blind)
#002A73
Tritanopia (blue-blind)
#053446
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1b75;
/* rgb */ color: rgb(46, 27, 117);
/* oklch */ color: oklch(31.3% 0.143 284.1);
Tailwind
colors: {
  custom: {
    50: '#705a9e',
    500: '#2e1b75',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b75;
$custom-light: #705a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b75",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 117
  },
  "hsl": {
    "h": 252.667,
    "s": 62.5,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31347,
    "c": 0.14338,
    "h": 284.1
  },
  "luminance": 0.02649
}

Semantic roles & 50–950 ramp

primary
#2E1B75
secondary
#94A942
accent
#E642C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1B75

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

Preview Lab → · Contrast checker → · Palette generator →

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