#3E176F#3E176F

#3E176F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.141 H 298.0°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#3E176F
RGBrgb(62, 23, 111)
HSLhsl(267, 66%, 26%)
HSVhsv(267, 79%, 44%)
CMYKcmyk(44.1%, 79.3%, 0%, 56.5%)
CIE-LABlab(19.16, 37.79, -43.36)
CIE-LCHlch(19.16, 57.52, 311.08°)
OKLaboklab(32.02% 0.066 -0.124)
OKLCHoklch(32.02% 0.141 298)
XYZxyz(5.1615, 2.7845, 15.3014)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E176F #486F17
analogous
#171C6F #3E176F #6A176F
triadic
#3E176F #6F3E17 #176F3E
tetradic
#3E176F #6F171C #486F17 #176F6A
square
#3E176F #6F171C #486F17 #176F6A
split-complementary
#3E176F #6F6A17 #1C6F17
monochromatic
#0E0519 #220C3C #3E176F #5A22A2 #772DD3

Accessibility & contrast

On white

13.49
#3E176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3E176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E176F
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E176F#FFFFFF#000000##FFFFFF
##3E176F1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#322E42
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3e176f;
/* rgb */ color: rgb(62, 23, 111);
/* oklch */ color: oklch(32.0% 0.141 298.0);
Tailwind
colors: {
  custom: {
    50: '#795999',
    500: '#3e176f',
    950: '#000000',
  },
}
SCSS
$custom: #3e176f;
$custom-light: #795999;
$custom-dark: #000000;
JSON
{
  "hex": "#3e176f",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 266.591,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32016,
    "c": 0.14052,
    "h": 298
  },
  "luminance": 0.02785
}

Semantic roles & 50–950 ramp

primary
#3E176F
secondary
#77A53D
accent
#E93F9E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3E176F

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

Preview Lab → · Contrast checker → · Palette generator →

#3E176F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva