#2E1474#2E1474

#2E1474 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.149 H 285.7°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#2E1474
RGBrgb(46, 20, 116)
HSLhsl(256, 71%, 27%)
HSVhsv(256, 83%, 45%)
CMYKcmyk(60.3%, 82.8%, 0%, 54.5%)
CIE-LABlab(17.19, 38.21, -49.91)
CIE-LCHlch(17.19, 62.86, 307.44°)
OKLaboklab(30.34% 0.0405 -0.1438)
OKLCHoklch(30.34% 0.149 285.7)
XYZxyz(4.5283, 2.3418, 16.7330)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1474 #5A7414
analogous
#142A74 #2E1474 #5E1474
triadic
#2E1474 #742E14 #14742E
tetradic
#2E1474 #74142A #5A7414 #14745E
square
#2E1474 #74142A #5A7414 #14745E
split-complementary
#2E1474 #745E14 #2A7414
monochromatic
#0A051A #190B40 #2E1474 #431DA8 #5928DA

Accessibility & contrast

On white

14.30
#2E1474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1474
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1474#FFFFFF#000000##FFFFFF
##2E14741.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#083144
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1474;
/* rgb */ color: rgb(46, 20, 116);
/* oklch */ color: oklch(30.3% 0.149 285.7);
Tailwind
colors: {
  custom: {
    50: '#71569d',
    500: '#2e1474',
    950: '#000000',
  },
}
SCSS
$custom: #2e1474;
$custom-light: #71569d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1474",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 256.25,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30341,
    "c": 0.14937,
    "h": 285.7
  },
  "luminance": 0.02342
}

Semantic roles & 50–950 ramp

primary
#2E1474
secondary
#8CAA3A
accent
#ED3ABD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1474

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

Preview Lab → · Contrast checker → · Palette generator →

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