#2E177A#2E177A

#2E177A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.154 H 283.7°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#2E177A
RGBrgb(46, 23, 122)
HSLhsl(254, 68%, 28%)
HSVhsv(254, 81%, 48%)
CMYKcmyk(62.3%, 81.1%, 0%, 52.2%)
CIE-LABlab(18.36, 38.56, -51.83)
CIE-LCHlch(18.36, 64.60, 306.65°)
OKLaboklab(31.35% 0.0365 -0.1494)
OKLCHoklch(31.35% 0.154 283.7)
XYZxyz(4.9449, 2.5984, 18.6496)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E177A #637A17
analogous
#17317A #2E177A #5F177A
triadic
#2E177A #7A2E17 #177A2E
tetradic
#2E177A #7A1731 #637A17 #177A5F
square
#2E177A #7A1731 #637A17 #177A5F
split-complementary
#2E177A #7A5F17 #317A17
monochromatic
#0A051A #1B0D47 #2E177A #4121AD #5933D9

Accessibility & contrast

On white

13.82
#2E177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2E177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E177A
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E177A#FFFFFF#000000##FFFFFF
##2E177A1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002978
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e177a;
/* rgb */ color: rgb(46, 23, 122);
/* oklch */ color: oklch(31.4% 0.154 283.7);
Tailwind
colors: {
  custom: {
    50: '#7158a1',
    500: '#2e177a',
    950: '#000000',
  },
}
SCSS
$custom: #2e177a;
$custom-light: #7158a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e177a",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 253.939,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31352,
    "c": 0.15382,
    "h": 283.7
  },
  "luminance": 0.02599
}

Semantic roles & 50–950 ramp

primary
#2E177A
secondary
#95AF3E
accent
#EB3DC3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E177A

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

Preview Lab → · Contrast checker → · Palette generator →

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