#2E177B#2E177B

#2E177B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.155 H 283.5°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#2E177B
RGBrgb(46, 23, 123)
HSLhsl(254, 68%, 29%)
HSVhsv(254, 81%, 48%)
CMYKcmyk(62.6%, 81.3%, 0%, 51.8%)
CIE-LABlab(18.47, 38.87, -52.29)
CIE-LCHlch(18.47, 65.15, 306.62°)
OKLaboklab(31.46% 0.0362 -0.1508)
OKLCHoklch(31.46% 0.155 283.5)
XYZxyz(5.0072, 2.6234, 18.9776)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E177B #647B17
analogous
#17327B #2E177B #60177B
triadic
#2E177B #7B2E17 #177B2E
tetradic
#2E177B #7B1732 #647B17 #177B60
square
#2E177B #7B1732 #647B17 #177B60
split-complementary
#2E177B #7B6017 #327B17
monochromatic
#0A051A #1B0D47 #2E177B #4121AF #5A33D9

Accessibility & contrast

On white

13.77
#2E177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E177B
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E177B#FFFFFF#000000##FFFFFF
##2E177B1.0013.771.5213.77
#FFFFFF13.771.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e177b;
/* rgb */ color: rgb(46, 23, 123);
/* oklch */ color: oklch(31.5% 0.155 283.5);
Tailwind
colors: {
  custom: {
    50: '#7258a2',
    500: '#2e177b',
    950: '#000000',
  },
}
SCSS
$custom: #2e177b;
$custom-light: #7258a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e177b",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 253.8,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31461,
    "c": 0.15505,
    "h": 283.5
  },
  "luminance": 0.02624
}

Semantic roles & 50–950 ramp

primary
#2E177B
secondary
#96B03E
accent
#EB3CC3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E177B

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

Preview Lab → · Contrast checker → · Palette generator →

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