#3E176D#3E176D

#3E176D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.138 H 298.8°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#3E176D
RGBrgb(62, 23, 109)
HSLhsl(267, 65%, 26%)
HSVhsv(267, 79%, 43%)
CMYKcmyk(43.1%, 78.9%, 0%, 57.3%)
CIE-LABlab(18.98, 37.25, -42.36)
CIE-LCHlch(18.98, 56.41, 311.32°)
OKLaboklab(31.83% 0.0666 -0.1211)
OKLCHoklch(31.83% 0.138 298.8)
XYZxyz(5.0526, 2.7410, 14.7279)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E176D #466D17
analogous
#171B6D #3E176D #69176D
triadic
#3E176D #6D3E17 #176D3E
tetradic
#3E176D #6D171B #466D17 #176D69
square
#3E176D #6D171B #466D17 #176D69
split-complementary
#3E176D #6D6917 #1B6D17
monochromatic
#0E0519 #210C3A #3E176D #5B22A0 #772CD2

Accessibility & contrast

On white

13.56
#3E176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3E176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E176D
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E176D#FFFFFF#000000##FFFFFF
##3E176D1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6F
Deuteranopia (green-blind)
#002D6B
Tritanopia (blue-blind)
#322D41
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3e176d;
/* rgb */ color: rgb(62, 23, 109);
/* oklch */ color: oklch(31.8% 0.138 298.8);
Tailwind
colors: {
  custom: {
    50: '#785998',
    500: '#3e176d',
    950: '#000000',
  },
}
SCSS
$custom: #3e176d;
$custom-light: #785998;
$custom-dark: #000000;
JSON
{
  "hex": "#3e176d",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 267.209,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3183,
    "c": 0.1382,
    "h": 298.8
  },
  "luminance": 0.02741
}

Semantic roles & 50–950 ramp

primary
#3E176D
secondary
#75A33D
accent
#E8409C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3E176D

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

Preview Lab → · Contrast checker → · Palette generator →

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