#2E1372#2E1372

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

Color values

HEX#2E1372
RGBrgb(46, 19, 114)
HSLhsl(257, 71%, 26%)
HSVhsv(257, 83%, 45%)
CMYKcmyk(59.6%, 83.3%, 0%, 55.3%)
CIE-LABlab(16.80, 38.09, -49.25)
CIE-LCHlch(16.80, 62.26, 307.72°)
OKLaboklab(30.01% 0.0419 -0.1418)
OKLCHoklch(30.01% 0.148 286.5)
XYZxyz(4.3959, 2.2612, 16.1212)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1372 #577213
analogous
#132772 #2E1372 #5D1372
triadic
#2E1372 #722E13 #13722E
tetradic
#2E1372 #721327 #577213 #13725D
square
#2E1372 #721327 #577213 #13725D
split-complementary
#2E1372 #725D13 #277213
monochromatic
#0B041A #190A3E #2E1372 #431CA6 #5825DB

Accessibility & contrast

On white

14.46
#2E1372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1372
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1372#FFFFFF#000000##FFFFFF
##2E13721.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#0C2F43
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1372;
/* rgb */ color: rgb(46, 19, 114);
/* oklch */ color: oklch(30.0% 0.148 286.5);
Tailwind
colors: {
  custom: {
    50: '#70559c',
    500: '#2e1372',
    950: '#000000',
  },
}
SCSS
$custom: #2e1372;
$custom-light: #70559c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1372",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 257.053,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30008,
    "c": 0.14788,
    "h": 286.5
  },
  "luminance": 0.02261
}

Semantic roles & 50–950 ramp

primary
#2E1372
secondary
#89A938
accent
#EE3ABB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1372

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

Preview Lab → · Contrast checker → · Palette generator →

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