#2E1471#2E1471

#2E1471 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.146 H 286.6°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#2E1471
RGBrgb(46, 20, 113)
HSLhsl(257, 70%, 26%)
HSVhsv(257, 82%, 44%)
CMYKcmyk(59.3%, 82.3%, 0%, 55.7%)
CIE-LABlab(16.86, 37.30, -48.51)
CIE-LCHlch(16.86, 61.19, 307.56°)
OKLaboklab(30.01% 0.0415 -0.1397)
OKLCHoklch(30.01% 0.146 286.6)
XYZxyz(4.3566, 2.2732, 15.8288)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1471 #577114
analogous
#142871 #2E1471 #5C1471
triadic
#2E1471 #712E14 #14712E
tetradic
#2E1471 #711428 #577114 #14715C
square
#2E1471 #711428 #577114 #14715C
split-complementary
#2E1471 #715C14 #287114
monochromatic
#0B051A #190B3D #2E1471 #431DA5 #5827D9

Accessibility & contrast

On white

14.44
#2E1471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2E1471 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1471
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1471#FFFFFF#000000##FFFFFF
##2E14711.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#0E2F42
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1471;
/* rgb */ color: rgb(46, 20, 113);
/* oklch */ color: oklch(30.0% 0.146 286.6);
Tailwind
colors: {
  custom: {
    50: '#70559b',
    500: '#2e1471',
    950: '#000000',
  },
}
SCSS
$custom: #2e1471;
$custom-light: #70559b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1471",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 113
  },
  "hsl": {
    "h": 256.774,
    "s": 69.925,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30015,
    "c": 0.14572,
    "h": 286.6
  },
  "luminance": 0.02273
}

Semantic roles & 50–950 ramp

primary
#2E1471
secondary
#89A739
accent
#ED3BBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1471

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

Preview Lab → · Contrast checker → · Palette generator →

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