#2E1D72#2E1D72

#2E1D72 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.3% C 0.137 H 284.4°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#2E1D72
RGBrgb(46, 29, 114)
HSLhsl(252, 59%, 28%)
HSVhsv(252, 75%, 45%)
CMYKcmyk(59.6%, 74.6%, 0%, 55.3%)
CIE-LABlab(18.69, 32.72, -46.15)
CIE-LCHlch(18.69, 56.57, 305.34°)
OKLaboklab(31.33% 0.0341 -0.1328)
OKLCHoklch(31.33% 0.137 284.4)
XYZxyz(4.6024, 2.6742, 16.1900)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D72 #61721D
analogous
#1D3672 #2E1D72 #581D72
triadic
#2E1D72 #722E1D #1D722E
tetradic
#2E1D72 #721D36 #61721D #1D7258
square
#2E1D72 #721D36 #61721D #1D7258
split-complementary
#2E1D72 #72581D #36721D
monochromatic
#0A0618 #1A1141 #2E1D72 #4229A3 #593CCD

Accessibility & contrast

On white

13.68
#2E1D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1D72
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D72#FFFFFF#000000##FFFFFF
##2E1D721.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#0B3445
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1d72;
/* rgb */ color: rgb(46, 29, 114);
/* oklch */ color: oklch(31.3% 0.137 284.4);
Tailwind
colors: {
  custom: {
    50: '#6f5b9b',
    500: '#2e1d72',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d72;
$custom-light: #6f5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d72",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 114
  },
  "hsl": {
    "h": 252,
    "s": 59.441,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31333,
    "c": 0.13715,
    "h": 284.4
  },
  "luminance": 0.02674
}

Semantic roles & 50–950 ramp

primary
#2E1D72
secondary
#93A645
accent
#E345C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1D72

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

Preview Lab → · Contrast checker → · Palette generator →

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