#2E177D#2E177D

#2E177D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.157 H 283.1°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#2E177D
RGBrgb(46, 23, 125)
HSLhsl(254, 69%, 29%)
HSVhsv(254, 82%, 49%)
CMYKcmyk(63.2%, 81.6%, 0%, 51%)
CIE-LABlab(18.69, 39.49, -53.20)
CIE-LCHlch(18.69, 66.26, 306.58°)
OKLaboklab(31.68% 0.0356 -0.1534)
OKLCHoklch(31.68% 0.157 283.1)
XYZxyz(5.1336, 2.6739, 19.6437)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E177D #667D17
analogous
#17337D #2E177D #61177D
triadic
#2E177D #7D2E17 #177D2E
tetradic
#2E177D #7D1733 #667D17 #177D61
square
#2E177D #7D1733 #667D17 #177D61
split-complementary
#2E177D #7D6117 #337D17
monochromatic
#0A051A #1B0D49 #2E177D #4121B1 #5A35DA

Accessibility & contrast

On white

13.68
#2E177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2E177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E177D
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E177D#FFFFFF#000000##FFFFFF
##2E177D1.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e177d;
/* rgb */ color: rgb(46, 23, 125);
/* oklch */ color: oklch(31.7% 0.157 283.1);
Tailwind
colors: {
  custom: {
    50: '#7258a4',
    500: '#2e177d',
    950: '#000000',
  },
}
SCSS
$custom: #2e177d;
$custom-light: #7258a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e177d",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 253.529,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31679,
    "c": 0.15749,
    "h": 283.1
  },
  "luminance": 0.02674
}

Semantic roles & 50–950 ramp

primary
#2E177D
secondary
#98B23E
accent
#EC3CC4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E177D

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

Preview Lab → · Contrast checker → · Palette generator →

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