#3E168F#3E168F

#3E168F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.178 H 288.4°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#3E168F
RGBrgb(62, 22, 143)
HSLhsl(260, 73%, 32%)
HSVhsv(260, 85%, 56%)
CMYKcmyk(56.6%, 84.6%, 0%, 43.9%)
CIE-LABlab(22.23, 47.05, -58.62)
CIE-LCHlch(22.23, 75.17, 308.75°)
OKLaboklab(35.13% 0.056 -0.1687)
OKLCHoklch(35.13% 0.178 288.4)
XYZxyz(7.2300, 3.5807, 26.2915)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E168F #678F16
analogous
#162A8F #3E168F #7B168F
triadic
#3E168F #8F3E16 #168F3E
tetradic
#3E168F #8F162A #678F16 #168F7B
square
#3E168F #8F162A #678F16 #168F7B
split-complementary
#3E168F #8F7B16 #2A8F16
monochromatic
#100625 #270E5A #3E168F #551EC4 #743EE1

Accessibility & contrast

On white

12.24
#3E168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3E168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E168F
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E168F#FFFFFF#000000##FFFFFF
##3E168F1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#1B3B54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e168f;
/* rgb */ color: rgb(62, 22, 143);
/* oklch */ color: oklch(35.1% 0.178 288.4);
Tailwind
colors: {
  custom: {
    50: '#7e5ab1',
    500: '#3e168f',
    950: '#000000',
  },
}
SCSS
$custom: #3e168f;
$custom-light: #7e5ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e168f",
  "rgb": {
    "r": 62,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 259.835,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35127,
    "c": 0.17777,
    "h": 288.4
  },
  "luminance": 0.03581
}

Semantic roles & 50–950 ramp

primary
#3E168F
secondary
#96C13F
accent
#F038B3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3E168F

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

Preview Lab → · Contrast checker → · Palette generator →

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