#3E167B#3E167B

#3E167B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.155 H 294.0°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#3E167B
RGBrgb(62, 22, 123)
HSLhsl(264, 70%, 28%)
HSVhsv(264, 82%, 48%)
CMYKcmyk(49.6%, 82.1%, 0%, 51.8%)
CIE-LABlab(20.15, 41.55, -49.45)
CIE-LCHlch(20.15, 64.59, 310.04°)
OKLaboklab(33.07% 0.0632 -0.1419)
OKLCHoklch(33.07% 0.155 294)
XYZxyz(5.8477, 3.0278, 19.0114)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E167B #537B16
analogous
#16217B #3E167B #70167B
triadic
#3E167B #7B3E16 #167B3E
tetradic
#3E167B #7B1621 #537B16 #167B70
square
#3E167B #7B1621 #537B16 #167B70
split-complementary
#3E167B #7B7016 #217B16
monochromatic
#0D051A #240D47 #3E167B #581FAF #7431DA

Accessibility & contrast

On white

13.08
#3E167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E167B
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E167B#FFFFFF#000000##FFFFFF
##3E167B1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.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: #3e167b;
/* rgb */ color: rgb(62, 22, 123);
/* oklch */ color: oklch(33.1% 0.155 294.0);
Tailwind
colors: {
  custom: {
    50: '#7b59a2',
    500: '#3e167b',
    950: '#000000',
  },
}
SCSS
$custom: #3e167b;
$custom-light: #7b59a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e167b",
  "rgb": {
    "r": 62,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 263.762,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33065,
    "c": 0.15532,
    "h": 294
  },
  "luminance": 0.03028
}

Semantic roles & 50–950 ramp

primary
#3E167B
secondary
#82B03D
accent
#EC3BA6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E167B

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

Preview Lab → · Contrast checker → · Palette generator →

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