#3E178D#3E178D

#3E178D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.175 H 288.7°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#3E178D
RGBrgb(62, 23, 141)
HSLhsl(260, 72%, 32%)
HSVhsv(260, 84%, 55%)
CMYKcmyk(56%, 83.7%, 0%, 44.7%)
CIE-LABlab(22.16, 46.09, -57.50)
CIE-LCHlch(22.16, 73.69, 308.72°)
OKLaboklab(35.01% 0.0561 -0.1655)
OKLCHoklch(35.01% 0.175 288.7)
XYZxyz(7.0993, 3.5597, 25.5071)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E178D #668D17
analogous
#172B8D #3E178D #79178D
triadic
#3E178D #8D3E17 #178D3E
tetradic
#3E178D #8D172B #668D17 #178D79
square
#3E178D #8D172B #668D17 #178D79
split-complementary
#3E178D #8D7917 #2B8D17
monochromatic
#100624 #270E58 #3E178D #5520C2 #743FE0

Accessibility & contrast

On white

12.27
#3E178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3E178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E178D
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E178D#FFFFFF#000000##FFFFFF
##3E178D1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#1D3B53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e178d;
/* rgb */ color: rgb(62, 23, 141);
/* oklch */ color: oklch(35.0% 0.175 288.7);
Tailwind
colors: {
  custom: {
    50: '#7d5baf',
    500: '#3e178d',
    950: '#000000',
  },
}
SCSS
$custom: #3e178d;
$custom-light: #7d5baf;
$custom-dark: #000000;
JSON
{
  "hex": "#3e178d",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 259.831,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35011,
    "c": 0.17472,
    "h": 288.7
  },
  "luminance": 0.0356
}

Semantic roles & 50–950 ramp

primary
#3E178D
secondary
#96C040
accent
#EF39B3
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3E178D

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

Preview Lab → · Contrast checker → · Palette generator →

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