#3E167E#3E167E

#3E167E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.159 H 293.1°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#3E167E
RGBrgb(62, 22, 126)
HSLhsl(263, 70%, 29%)
HSVhsv(263, 83%, 49%)
CMYKcmyk(50.8%, 82.5%, 0%, 50.6%)
CIE-LABlab(20.46, 42.37, -50.86)
CIE-LCHlch(20.46, 66.20, 309.80°)
OKLaboklab(33.37% 0.0622 -0.146)
OKLCHoklch(33.37% 0.159 293.1)
XYZxyz(6.0384, 3.1041, 20.0156)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E167E #567E16
analogous
#16227E #3E167E #72167E
triadic
#3E167E #7E3E16 #167E3E
tetradic
#3E167E #7E1622 #567E16 #167E72
square
#3E167E #7E1622 #567E16 #167E72
split-complementary
#3E167E #7E7216 #227E16
monochromatic
#0D051A #240D4A #3E167E #581FB2 #7433DB

Accessibility & contrast

On white

12.96
#3E167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3E167E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E167E
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E167E#FFFFFF#000000##FFFFFF
##3E167E1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#29344A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e167e;
/* rgb */ color: rgb(62, 22, 126);
/* oklch */ color: oklch(33.4% 0.159 293.1);
Tailwind
colors: {
  custom: {
    50: '#7b59a4',
    500: '#3e167e',
    950: '#000000',
  },
}
SCSS
$custom: #3e167e;
$custom-light: #7b59a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e167e",
  "rgb": {
    "r": 62,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 263.077,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33366,
    "c": 0.15871,
    "h": 293.1
  },
  "luminance": 0.03104
}

Semantic roles & 50–950 ramp

primary
#3E167E
secondary
#86B33D
accent
#ED3BA8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E167E

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

Preview Lab → · Contrast checker → · Palette generator →

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