#2E178B#2E178B

#2E178B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.174 H 280.2°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#2E178B
RGBrgb(46, 23, 139)
HSLhsl(252, 72%, 32%)
HSVhsv(252, 83%, 55%)
CMYKcmyk(66.9%, 83.5%, 0%, 45.5%)
CIE-LABlab(20.27, 43.75, -59.42)
CIE-LCHlch(20.27, 73.79, 306.36°)
OKLaboklab(33.25% 0.031 -0.1715)
OKLCHoklch(33.25% 0.174 280.2)
XYZxyz(6.0918, 3.0572, 24.6902)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E178B #748B17
analogous
#173A8B #2E178B #68178B
triadic
#2E178B #8B2E17 #178B2E
tetradic
#2E178B #8B173A #748B17 #178B68
square
#2E178B #8B173A #748B17 #178B68
split-complementary
#2E178B #8B6817 #3A8B17
monochromatic
#0B0622 #1D0E56 #2E178B #3F20C0 #5D3DDF

Accessibility & contrast

On white

13.03
#2E178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E178B
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E178B#FFFFFF#000000##FFFFFF
##2E178B1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002C89
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e178b;
/* rgb */ color: rgb(46, 23, 139);
/* oklch */ color: oklch(33.2% 0.174 280.2);
Tailwind
colors: {
  custom: {
    50: '#7559ae',
    500: '#2e178b',
    950: '#000000',
  },
}
SCSS
$custom: #2e178b;
$custom-light: #7559ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e178b",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 251.897,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33245,
    "c": 0.17431,
    "h": 280.2
  },
  "luminance": 0.03058
}

Semantic roles & 50–950 ramp

primary
#2E178B
secondary
#A5BF3F
accent
#EE39CA
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2E178B

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

Preview Lab → · Contrast checker → · Palette generator →

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