#3E165B#3E165B

#3E165B is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.1% C 0.119 H 307.1°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#3E165B
RGBrgb(62, 22, 91)
HSLhsl(275, 61%, 22%)
HSVhsv(275, 76%, 36%)
CMYKcmyk(31.9%, 75.8%, 0%, 64.3%)
CIE-LABlab(17.24, 32.94, -33.31)
CIE-LCHlch(17.24, 46.85, 314.68°)
OKLaboklab(30.12% 0.0716 -0.0945)
OKLCHoklch(30.12% 0.119 307.1)
XYZxyz(4.1614, 2.3533, 10.1305)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E165B #335B16
analogous
#1C165B #3E165B #5B1656
triadic
#3E165B #5B3E16 #165B3E
tetradic
#3E165B #5B1C16 #335B16 #16565B
square
#3E165B #5B1C16 #335B16 #16565B
split-complementary
#3E165B #565B16 #165B1C
monochromatic
#110619 #1C0A2A #3E165B #60228C #812EBE

Accessibility & contrast

On white

14.28
#3E165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3E165B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E165B
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E165B#FFFFFF#000000##FFFFFF
##3E165B1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#022B5A
Tritanopia (blue-blind)
#392637
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3e165b;
/* rgb */ color: rgb(62, 22, 91);
/* oklch */ color: oklch(30.1% 0.119 307.1);
Tailwind
colors: {
  custom: {
    50: '#77578a',
    500: '#3e165b',
    950: '#000000',
  },
}
SCSS
$custom: #3e165b;
$custom-light: #77578a;
$custom-dark: #000000;
JSON
{
  "hex": "#3e165b",
  "rgb": {
    "r": 62,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 274.783,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30117,
    "c": 0.11855,
    "h": 307.1
  },
  "luminance": 0.02353
}

Semantic roles & 50–950 ramp

primary
#3E165B
secondary
#5F923B
accent
#E44487
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3E165B

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

Preview Lab → · Contrast checker → · Palette generator →

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