#2E1B73#2E1B73

#2E1B73 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.141 H 284.6°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#2E1B73
RGBrgb(46, 27, 115)
HSLhsl(253, 62%, 28%)
HSVhsv(253, 77%, 45%)
CMYKcmyk(60%, 76.5%, 0%, 54.9%)
CIE-LABlab(18.37, 34.21, -47.31)
CIE-LCHlch(18.37, 58.38, 305.87°)
OKLaboklab(31.14% 0.0355 -0.1362)
OKLCHoklch(31.14% 0.141 284.6)
XYZxyz(4.6122, 2.6022, 16.4756)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B73 #60731B
analogous
#1B3473 #2E1B73 #5A1B73
triadic
#2E1B73 #732E1B #1B732E
tetradic
#2E1B73 #731B34 #60731B #1B735A
square
#2E1B73 #731B34 #60731B #1B735A
split-complementary
#2E1B73 #735A1B #34731B
monochromatic
#0A0619 #1A0F41 #2E1B73 #4227A5 #5938D0

Accessibility & contrast

On white

13.81
#2E1B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2E1B73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B73
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B73#FFFFFF#000000##FFFFFF
##2E1B731.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F76
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#093345
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1b73;
/* rgb */ color: rgb(46, 27, 115);
/* oklch */ color: oklch(31.1% 0.141 284.6);
Tailwind
colors: {
  custom: {
    50: '#705a9c',
    500: '#2e1b73',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b73;
$custom-light: #705a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b73",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 115
  },
  "hsl": {
    "h": 252.955,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31141,
    "c": 0.1408,
    "h": 284.6
  },
  "luminance": 0.02603
}

Semantic roles & 50–950 ramp

primary
#2E1B73
secondary
#92A842
accent
#E543C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1B73

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

Preview Lab → · Contrast checker → · Palette generator →

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