#3E177B#3E177B

#3E177B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.154 H 293.8°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#3E177B
RGBrgb(62, 23, 123)
HSLhsl(263, 68%, 29%)
HSVhsv(263, 81%, 48%)
CMYKcmyk(49.6%, 81.3%, 0%, 51.8%)
CIE-LABlab(20.31, 41.10, -49.19)
CIE-LCHlch(20.31, 64.10, 309.88°)
OKLaboklab(33.17% 0.0624 -0.1412)
OKLCHoklch(33.17% 0.154 293.8)
XYZxyz(5.8672, 3.0668, 19.0179)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E177B #547B17
analogous
#17227B #3E177B #70177B
triadic
#3E177B #7B3E17 #177B3E
tetradic
#3E177B #7B1722 #547B17 #177B70
square
#3E177B #7B1722 #547B17 #177B70
split-complementary
#3E177B #7B7017 #227B17
monochromatic
#0D051A #240D47 #3E177B #5821AF #7433D9

Accessibility & contrast

On white

13.02
#3E177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3E177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E177B
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E177B#FFFFFF#000000##FFFFFF
##3E177B1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#2B3349
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e177b;
/* rgb */ color: rgb(62, 23, 123);
/* oklch */ color: oklch(33.2% 0.154 293.8);
Tailwind
colors: {
  custom: {
    50: '#7a59a2',
    500: '#3e177b',
    950: '#000000',
  },
}
SCSS
$custom: #3e177b;
$custom-light: #7a59a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e177b",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 263.4,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33173,
    "c": 0.15433,
    "h": 293.8
  },
  "luminance": 0.03067
}

Semantic roles & 50–950 ramp

primary
#3E177B
secondary
#83B03E
accent
#EB3CA7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E177B

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

Preview Lab → · Contrast checker → · Palette generator →

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