#2E1472#2E1472

#2E1472 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.147 H 286.3°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#2E1472
RGBrgb(46, 20, 114)
HSLhsl(257, 70%, 26%)
HSVhsv(257, 82%, 45%)
CMYKcmyk(59.6%, 82.5%, 0%, 55.3%)
CIE-LABlab(16.97, 37.60, -48.98)
CIE-LCHlch(16.97, 61.75, 307.52°)
OKLaboklab(30.12% 0.0412 -0.141)
OKLCHoklch(30.12% 0.147 286.3)
XYZxyz(4.4132, 2.2958, 16.1269)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1472 #587214
analogous
#142972 #2E1472 #5D1472
triadic
#2E1472 #722E14 #14722E
tetradic
#2E1472 #721429 #587214 #14725D
square
#2E1472 #721429 #587214 #14725D
split-complementary
#2E1472 #725D14 #297214
monochromatic
#0B051A #190B3E #2E1472 #431DA6 #5827D9

Accessibility & contrast

On white

14.39
#2E1472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2E1472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1472
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1472#FFFFFF#000000##FFFFFF
##2E14721.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1472;
/* rgb */ color: rgb(46, 20, 114);
/* oklch */ color: oklch(30.1% 0.147 286.3);
Tailwind
colors: {
  custom: {
    50: '#70569c',
    500: '#2e1472',
    950: '#000000',
  },
}
SCSS
$custom: #2e1472;
$custom-light: #70569c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1472",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 256.596,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30124,
    "c": 0.14693,
    "h": 286.3
  },
  "luminance": 0.02296
}

Semantic roles & 50–950 ramp

primary
#2E1472
secondary
#8AA839
accent
#ED3BBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1472

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

Preview Lab → · Contrast checker → · Palette generator →

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