#3E168D#3E168D

#3E168D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.176 H 288.9°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#3E168D
RGBrgb(62, 22, 141)
HSLhsl(260, 73%, 32%)
HSVhsv(260, 84%, 55%)
CMYKcmyk(56%, 84.4%, 0%, 44.7%)
CIE-LABlab(22.02, 46.50, -57.73)
CIE-LCHlch(22.02, 74.13, 308.85°)
OKLaboklab(34.92% 0.0568 -0.1661)
OKLCHoklch(34.92% 0.176 288.9)
XYZxyz(7.0798, 3.5207, 25.5006)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E168D #658D16
analogous
#162A8D #3E168D #7A168D
triadic
#3E168D #8D3E16 #168D3E
tetradic
#3E168D #8D162A #658D16 #168D7A
square
#3E168D #8D162A #658D16 #168D7A
split-complementary
#3E168D #8D7A16 #2A8D16
monochromatic
#0F0523 #270E58 #3E168D #551EC2 #743DE1

Accessibility & contrast

On white

12.32
#3E168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3E168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E168D
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E168D#FFFFFF#000000##FFFFFF
##3E168D1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e168d;
/* rgb */ color: rgb(62, 22, 141);
/* oklch */ color: oklch(34.9% 0.176 288.9);
Tailwind
colors: {
  custom: {
    50: '#7d5aaf',
    500: '#3e168d',
    950: '#000000',
  },
}
SCSS
$custom: #3e168d;
$custom-light: #7d5aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#3e168d",
  "rgb": {
    "r": 62,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 260.168,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34915,
    "c": 0.17555,
    "h": 288.9
  },
  "luminance": 0.03521
}

Semantic roles & 50–950 ramp

primary
#3E168D
secondary
#95C13E
accent
#F038B2
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3E168D

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

Preview Lab → · Contrast checker → · Palette generator →

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