#2E1D75#2E1D75

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

Color values

HEX#2E1D75
RGBrgb(46, 29, 117)
HSLhsl(252, 60%, 29%)
HSVhsv(252, 75%, 46%)
CMYKcmyk(60.7%, 75.2%, 0%, 54.1%)
CIE-LABlab(18.99, 33.70, -47.59)
CIE-LCHlch(18.99, 58.32, 305.30°)
OKLaboklab(31.64% 0.0334 -0.1371)
OKLCHoklch(31.64% 0.141 283.7)
XYZxyz(4.7760, 2.7436, 17.1041)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D75 #64751D
analogous
#1D3875 #2E1D75 #5A1D75
triadic
#2E1D75 #752E1D #1D752E
tetradic
#2E1D75 #751D38 #64751D #1D755A
square
#2E1D75 #751D38 #64751D #1D755A
split-complementary
#2E1D75 #755A1D #38751D
monochromatic
#0A0619 #1B1144 #2E1D75 #4129A6 #5A3DCF

Accessibility & contrast

On white

13.56
#2E1D75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2E1D75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1D75
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D75#FFFFFF#000000##FFFFFF
##2E1D751.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003178
Deuteranopia (green-blind)
#002B73
Tritanopia (blue-blind)
#053547
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e1d75;
/* rgb */ color: rgb(46, 29, 117);
/* oklch */ color: oklch(31.6% 0.141 283.7);
Tailwind
colors: {
  custom: {
    50: '#705b9e',
    500: '#2e1d75',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d75;
$custom-light: #705b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d75",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 117
  },
  "hsl": {
    "h": 251.591,
    "s": 60.274,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31636,
    "c": 0.14109,
    "h": 283.7
  },
  "luminance": 0.02744
}

Semantic roles & 50–950 ramp

primary
#2E1D75
secondary
#96A945
accent
#E344C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1D75

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

Preview Lab → · Contrast checker → · Palette generator →

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