#2E1D73#2E1D73

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

Color values

HEX#2E1D73
RGBrgb(46, 29, 115)
HSLhsl(252, 60%, 28%)
HSVhsv(252, 75%, 45%)
CMYKcmyk(60%, 74.8%, 0%, 54.9%)
CIE-LABlab(18.79, 33.05, -46.63)
CIE-LCHlch(18.79, 57.16, 305.33°)
OKLaboklab(31.43% 0.0339 -0.1343)
OKLCHoklch(31.43% 0.138 284.2)
XYZxyz(4.6596, 2.6971, 16.4914)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D73 #62731D
analogous
#1D3773 #2E1D73 #591D73
triadic
#2E1D73 #732E1D #1D732E
tetradic
#2E1D73 #731D37 #62731D #1D7359
square
#2E1D73 #731D37 #62731D #1D7359
split-complementary
#2E1D73 #73591D #37731D
monochromatic
#0A0618 #1A1142 #2E1D73 #4229A4 #593CCE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E1D73#FFFFFF#000000##FFFFFF
##2E1D731.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)
#003076
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#093446
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e1d73;
/* rgb */ color: rgb(46, 29, 115);
/* oklch */ color: oklch(31.4% 0.138 284.2);
Tailwind
colors: {
  custom: {
    50: '#705b9c',
    500: '#2e1d73',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d73;
$custom-light: #705b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d73",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 115
  },
  "hsl": {
    "h": 251.86,
    "s": 59.722,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31434,
    "c": 0.13846,
    "h": 284.2
  },
  "luminance": 0.02697
}

Semantic roles & 50–950 ramp

primary
#2E1D73
secondary
#94A745
accent
#E345C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1D73

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

Preview Lab → · Contrast checker → · Palette generator →

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