#2E1572#2E1572

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

Color values

HEX#2E1572
RGBrgb(46, 21, 114)
HSLhsl(256, 69%, 26%)
HSVhsv(256, 82%, 45%)
CMYKcmyk(59.6%, 81.6%, 0%, 55.3%)
CIE-LABlab(17.14, 37.11, -48.69)
CIE-LCHlch(17.14, 61.22, 307.31°)
OKLaboklab(30.24% 0.0405 -0.1402)
OKLCHoklch(30.24% 0.146 286.1)
XYZxyz(4.4312, 2.3318, 16.1329)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1572 #597215
analogous
#152B72 #2E1572 #5D1572
triadic
#2E1572 #722E15 #15722E
tetradic
#2E1572 #72152B #597215 #15725D
square
#2E1572 #72152B #597215 #15725D
split-complementary
#2E1572 #725D15 #2B7215
monochromatic
#0A051A #190B3E #2E1572 #431FA6 #582AD8

Accessibility & contrast

On white

14.32
#2E1572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2E1572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1572
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1572#FFFFFF#000000##FFFFFF
##2E15721.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#0C3043
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1572;
/* rgb */ color: rgb(46, 21, 114);
/* oklch */ color: oklch(30.2% 0.146 286.1);
Tailwind
colors: {
  custom: {
    50: '#70569c',
    500: '#2e1572',
    950: '#000000',
  },
}
SCSS
$custom: #2e1572;
$custom-light: #70569c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1572",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 256.129,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30243,
    "c": 0.14596,
    "h": 286.1
  },
  "luminance": 0.02332
}

Semantic roles & 50–950 ramp

primary
#2E1572
secondary
#8BA83B
accent
#EC3CBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1572

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

Preview Lab → · Contrast checker → · Palette generator →

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