#2E1D74#2E1D74

#2E1D74 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.140 H 283.9°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#2E1D74
RGBrgb(46, 29, 116)
HSLhsl(252, 60%, 28%)
HSVhsv(252, 75%, 45%)
CMYKcmyk(60.3%, 75%, 0%, 54.5%)
CIE-LABlab(18.89, 33.38, -47.11)
CIE-LCHlch(18.89, 57.74, 305.32°)
OKLaboklab(31.54% 0.0336 -0.1357)
OKLCHoklch(31.54% 0.14 283.9)
XYZxyz(4.7175, 2.7202, 16.7961)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D74 #63741D
analogous
#1D3774 #2E1D74 #591D74
triadic
#2E1D74 #742E1D #1D742E
tetradic
#2E1D74 #741D37 #63741D #1D7459
square
#2E1D74 #741D37 #63741D #1D7459
split-complementary
#2E1D74 #74591D #37741D
monochromatic
#0A0618 #1B1143 #2E1D74 #4129A5 #593DCE

Accessibility & contrast

On white

13.60
#2E1D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1D74
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D74#FFFFFF#000000##FFFFFF
##2E1D741.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#073546
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e1d74;
/* rgb */ color: rgb(46, 29, 116);
/* oklch */ color: oklch(31.5% 0.140 283.9);
Tailwind
colors: {
  custom: {
    50: '#705b9d',
    500: '#2e1d74',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d74;
$custom-light: #705b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d74",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 116
  },
  "hsl": {
    "h": 251.724,
    "s": 60,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31535,
    "c": 0.13978,
    "h": 283.9
  },
  "luminance": 0.02721
}

Semantic roles & 50–950 ramp

primary
#2E1D74
secondary
#95A845
accent
#E345C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1D74

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

Preview Lab → · Contrast checker → · Palette generator →

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