#2E17A0#2E17A0

#2E17A0 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.7% C 0.199 H 277.0°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#2E17A0
RGBrgb(46, 23, 160)
HSLhsl(250, 75%, 36%)
HSVhsv(250, 86%, 63%)
CMYKcmyk(71.2%, 85.6%, 0%, 37.3%)
CIE-LABlab(22.76, 49.98, -68.27)
CIE-LCHlch(22.76, 84.61, 306.21°)
OKLaboklab(35.68% 0.0241 -0.1972)
OKLCHoklch(35.68% 0.199 277)
XYZxyz(7.7762, 3.7310, 33.5612)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E17A0 #89A017
analogous
#1744A0 #2E17A0 #7217A0
triadic
#2E17A0 #A02E17 #17A02E
tetradic
#2E17A0 #A01744 #89A017 #17A072
square
#2E17A0 #A01744 #89A017 #17A072
split-complementary
#2E17A0 #A07217 #44A017
monochromatic
#0F0835 #1F0F6A #2E17A0 #3D1FD6 #664CE5

Accessibility & contrast

On white

12.02
#2E17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E17A0
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E17A0#FFFFFF#000000##FFFFFF
##2E17A01.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA4
Deuteranopia (green-blind)
#00309E
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e17a0;
/* rgb */ color: rgb(46, 23, 160);
/* oklch */ color: oklch(35.7% 0.199 277.0);
Tailwind
colors: {
  custom: {
    50: '#7a5bbe',
    500: '#2e17a0',
    950: '#000000',
  },
}
SCSS
$custom: #2e17a0;
$custom-light: #7a5bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2e17a0",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 250.073,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35681,
    "c": 0.19869,
    "h": 277
  },
  "luminance": 0.03732
}

Semantic roles & 50–950 ramp

primary
#2E17A0
secondary
#B2C74C
accent
#F136D2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2E17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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