#3E167F#3E167F

#3E167F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.160 H 292.7°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#3E167F
RGBrgb(62, 22, 127)
HSLhsl(263, 70%, 29%)
HSVhsv(263, 83%, 50%)
CMYKcmyk(51.2%, 82.7%, 0%, 50.2%)
CIE-LABlab(20.56, 42.65, -51.33)
CIE-LCHlch(20.56, 66.74, 309.72°)
OKLaboklab(33.47% 0.0618 -0.1474)
OKLCHoklch(33.47% 0.16 292.7)
XYZxyz(6.1032, 3.1300, 20.3571)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E167F #577F16
analogous
#16237F #3E167F #73167F
triadic
#3E167F #7F3E16 #167F3E
tetradic
#3E167F #7F1623 #577F16 #167F73
square
#3E167F #7F1623 #577F16 #167F73
split-complementary
#3E167F #7F7316 #237F16
monochromatic
#0D051A #250D4B #3E167F #571FB3 #7434DC

Accessibility & contrast

On white

12.92
#3E167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3E167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E167F
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E167F#FFFFFF#000000##FFFFFF
##3E167F1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#29354B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e167f;
/* rgb */ color: rgb(62, 22, 127);
/* oklch */ color: oklch(33.5% 0.160 292.7);
Tailwind
colors: {
  custom: {
    50: '#7b59a5',
    500: '#3e167f',
    950: '#000000',
  },
}
SCSS
$custom: #3e167f;
$custom-light: #7b59a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e167f",
  "rgb": {
    "r": 62,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 262.857,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33467,
    "c": 0.15984,
    "h": 292.7
  },
  "luminance": 0.0313
}

Semantic roles & 50–950 ramp

primary
#3E167F
secondary
#87B43D
accent
#ED3BA9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E167F

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

Preview Lab → · Contrast checker → · Palette generator →

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