#2E17A1#2E17A1

#2E17A1 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.200 H 276.8°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#2E17A1
RGBrgb(46, 23, 161)
HSLhsl(250, 75%, 36%)
HSVhsv(250, 86%, 63%)
CMYKcmyk(71.4%, 85.7%, 0%, 36.9%)
CIE-LABlab(22.88, 50.28, -68.68)
CIE-LCHlch(22.88, 85.11, 306.21°)
OKLaboklab(35.8% 0.0237 -0.1984)
OKLCHoklch(35.8% 0.2 276.8)
XYZxyz(7.8640, 3.7661, 34.0238)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E17A1 #8AA117
analogous
#1745A1 #2E17A1 #7317A1
triadic
#2E17A1 #A12E17 #17A12E
tetradic
#2E17A1 #A11745 #8AA117 #17A173
square
#2E17A1 #A11745 #8AA117 #17A173
split-complementary
#2E17A1 #A17317 #45A117
monochromatic
#0F0836 #1F0F6B #2E17A1 #3D1FD7 #664DE6

Accessibility & contrast

On white

11.98
#2E17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2E17A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E17A1
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E17A1#FFFFFF#000000##FFFFFF
##2E17A11.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA5
Deuteranopia (green-blind)
#00319F
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e17a1;
/* rgb */ color: rgb(46, 23, 161);
/* oklch */ color: oklch(35.8% 0.200 276.8);
Tailwind
colors: {
  custom: {
    50: '#7a5bbe',
    500: '#2e17a1',
    950: '#000000',
  },
}
SCSS
$custom: #2e17a1;
$custom-light: #7a5bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2e17a1",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 250,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35799,
    "c": 0.19983,
    "h": 276.8
  },
  "luminance": 0.03767
}

Semantic roles & 50–950 ramp

primary
#2E17A1
secondary
#B3C74C
accent
#F236D2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2E17A1

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

Preview Lab → · Contrast checker → · Palette generator →

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