#2E176B#2E176B

#2E176B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.135 H 287.7°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#2E176B
RGBrgb(46, 23, 107)
HSLhsl(256, 65%, 25%)
HSVhsv(256, 79%, 42%)
CMYKcmyk(57%, 78.5%, 0%, 58%)
CIE-LABlab(16.77, 33.90, -44.75)
CIE-LCHlch(16.77, 56.14, 307.15°)
OKLaboklab(29.76% 0.041 -0.1287)
OKLCHoklch(29.76% 0.135 287.7)
XYZxyz(4.0862, 2.2550, 14.1270)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E176B #546B17
analogous
#172A6B #2E176B #58176B
triadic
#2E176B #6B2E17 #176B2E
tetradic
#2E176B #6B172A #546B17 #176B58
square
#2E176B #6B172A #546B17 #176B58
split-complementary
#2E176B #6B5817 #2A6B17
monochromatic
#0B0519 #180C39 #2E176B #44229D #592DD0

Accessibility & contrast

On white

14.47
#2E176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2E176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E176B
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E176B#FFFFFF#000000##FFFFFF
##2E176B1.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#152E40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e176b;
/* rgb */ color: rgb(46, 23, 107);
/* oklch */ color: oklch(29.8% 0.135 287.7);
Tailwind
colors: {
  custom: {
    50: '#6f5796',
    500: '#2e176b',
    950: '#000000',
  },
}
SCSS
$custom: #2e176b;
$custom-light: #6f5796;
$custom-dark: #000000;
JSON
{
  "hex": "#2e176b",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 256.429,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29763,
    "c": 0.13509,
    "h": 287.7
  },
  "luminance": 0.02255
}

Semantic roles & 50–950 ramp

primary
#2E176B
secondary
#86A13D
accent
#E840BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E176B

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

Preview Lab → · Contrast checker → · Palette generator →

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