#2E176D#2E176D

#2E176D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.138 H 287.1°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#2E176D
RGBrgb(46, 23, 109)
HSLhsl(256, 65%, 26%)
HSVhsv(256, 79%, 43%)
CMYKcmyk(57.8%, 78.9%, 0%, 57.3%)
CIE-LABlab(16.98, 34.52, -45.71)
CIE-LCHlch(16.98, 57.29, 307.06°)
OKLaboklab(29.97% 0.0405 -0.1315)
OKLCHoklch(29.97% 0.138 287.1)
XYZxyz(4.1926, 2.2975, 14.6876)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E176D #566D17
analogous
#172B6D #2E176D #59176D
triadic
#2E176D #6D2E17 #176D2E
tetradic
#2E176D #6D172B #566D17 #176D59
square
#2E176D #6D172B #566D17 #176D59
split-complementary
#2E176D #6D5917 #2B6D17
monochromatic
#0B0519 #190C3A #2E176D #4322A0 #592CD2

Accessibility & contrast

On white

14.39
#2E176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2E176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E176D
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E176D#FFFFFF#000000##FFFFFF
##2E176D1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6F
Deuteranopia (green-blind)
#00276B
Tritanopia (blue-blind)
#132F41
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e176d;
/* rgb */ color: rgb(46, 23, 109);
/* oklch */ color: oklch(30.0% 0.138 287.1);
Tailwind
colors: {
  custom: {
    50: '#6f5798',
    500: '#2e176d',
    950: '#000000',
  },
}
SCSS
$custom: #2e176d;
$custom-light: #6f5798;
$custom-dark: #000000;
JSON
{
  "hex": "#2e176d",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 256.047,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.2997,
    "c": 0.13762,
    "h": 287.1
  },
  "luminance": 0.02298
}

Semantic roles & 50–950 ramp

primary
#2E176D
secondary
#88A33D
accent
#E840BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E176D

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

Preview Lab → · Contrast checker → · Palette generator →

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