#2E1E72#2E1E72

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

Color values

HEX#2E1E72
RGBrgb(46, 30, 114)
HSLhsl(251, 58%, 28%)
HSVhsv(251, 74%, 45%)
CMYKcmyk(59.6%, 73.7%, 0%, 55.3%)
CIE-LABlab(18.90, 32.13, -45.80)
CIE-LCHlch(18.90, 55.94, 305.05°)
OKLaboklab(31.49% 0.0332 -0.1318)
OKLCHoklch(31.49% 0.136 284.1)
XYZxyz(4.6273, 2.7240, 16.1983)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E72 #62721E
analogous
#1E3872 #2E1E72 #581E72
triadic
#2E1E72 #722E1E #1E722E
tetradic
#2E1E72 #721E38 #62721E #1E7258
square
#2E1E72 #721E38 #62721E #1E7258
split-complementary
#2E1E72 #72581E #38721E
monochromatic
#0A0618 #1A1142 #2E1E72 #422BA2 #593ECC

Accessibility & contrast

On white

13.59
#2E1E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1E72
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E72#FFFFFF#000000##FFFFFF
##2E1E721.0013.591.5413.59
#FFFFFF13.591.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1e72;
/* rgb */ color: rgb(46, 30, 114);
/* oklch */ color: oklch(31.5% 0.136 284.1);
Tailwind
colors: {
  custom: {
    50: '#6f5b9b',
    500: '#2e1e72',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e72;
$custom-light: #6f5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e72",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 114
  },
  "hsl": {
    "h": 251.429,
    "s": 58.333,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31486,
    "c": 0.13593,
    "h": 284.1
  },
  "luminance": 0.02724
}

Semantic roles & 50–950 ramp

primary
#2E1E72
secondary
#94A646
accent
#E246C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1E72

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

Preview Lab → · Contrast checker → · Palette generator →

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