#2E1174#2E1174

#2E1174 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 30.0% C 0.152 H 286.2°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#2E1174
RGBrgb(46, 17, 116)
HSLhsl(258, 74%, 26%)
HSVhsv(258, 85%, 45%)
CMYKcmyk(60.3%, 85.3%, 0%, 54.5%)
CIE-LABlab(16.71, 39.60, -50.69)
CIE-LCHlch(16.71, 64.33, 307.99°)
OKLaboklab(30.01% 0.0425 -0.146)
OKLCHoklch(30.01% 0.152 286.2)
XYZxyz(4.4786, 2.2424, 16.7164)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1174 #577411
analogous
#112574 #2E1174 #5F1174
triadic
#2E1174 #742E11 #11742E
tetradic
#2E1174 #741125 #577411 #11745F
square
#2E1174 #741125 #577411 #11745F
split-complementary
#2E1174 #745F11 #257411
monochromatic
#0B041B #19093F #2E1174 #4319A9 #5821DE

Accessibility & contrast

On white

14.50
#2E1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1174
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1174#FFFFFF#000000##FFFFFF
##2E11741.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002672
Tritanopia (blue-blind)
#092F44
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1174;
/* rgb */ color: rgb(46, 17, 116);
/* oklch */ color: oklch(30.0% 0.152 286.2);
Tailwind
colors: {
  custom: {
    50: '#71549d',
    500: '#2e1174',
    950: '#000000',
  },
}
SCSS
$custom: #2e1174;
$custom-light: #71549d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1174",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 257.576,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30012,
    "c": 0.15207,
    "h": 286.2
  },
  "luminance": 0.02243
}

Semantic roles & 50–950 ramp

primary
#2E1174
secondary
#89AB36
accent
#F137BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1174

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

Preview Lab → · Contrast checker → · Palette generator →

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