#2E178A#2E178A

#2E178A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.173 H 280.4°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#2E178A
RGBrgb(46, 23, 138)
HSLhsl(252, 71%, 32%)
HSVhsv(252, 83%, 54%)
CMYKcmyk(66.7%, 83.3%, 0%, 45.9%)
CIE-LABlab(20.16, 43.45, -58.99)
CIE-LCHlch(20.16, 73.26, 306.38°)
OKLaboklab(33.13% 0.0313 -0.1703)
OKLCHoklch(33.13% 0.173 280.4)
XYZxyz(6.0191, 3.0281, 24.3071)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E178A #738A17
analogous
#173A8A #2E178A #68178A
triadic
#2E178A #8A2E17 #178A2E
tetradic
#2E178A #8A173A #738A17 #178A68
square
#2E178A #8A173A #738A17 #178A68
split-complementary
#2E178A #8A6817 #3A8A17
monochromatic
#0B0621 #1D0E56 #2E178A #3F20BE #5D3DDF

Accessibility & contrast

On white

13.08
#2E178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2E178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E178A
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E178A#FFFFFF#000000##FFFFFF
##2E178A1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002C88
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e178a;
/* rgb */ color: rgb(46, 23, 138);
/* oklch */ color: oklch(33.1% 0.173 280.4);
Tailwind
colors: {
  custom: {
    50: '#7559ad',
    500: '#2e178a',
    950: '#000000',
  },
}
SCSS
$custom: #2e178a;
$custom-light: #7559ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e178a",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 252,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33132,
    "c": 0.17313,
    "h": 280.4
  },
  "luminance": 0.03029
}

Semantic roles & 50–950 ramp

primary
#2E178A
secondary
#A4BE3F
accent
#EE3ACA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2E178A

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

Preview Lab → · Contrast checker → · Palette generator →

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