#3E165A#3E165A

#3E165A is a dark, moderate violet. Relative luminance 0.023; OKLCH L 30.0% C 0.117 H 307.7°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#3E165A
RGBrgb(62, 22, 90)
HSLhsl(275, 61%, 22%)
HSVhsv(275, 76%, 35%)
CMYKcmyk(31.1%, 75.6%, 0%, 64.7%)
CIE-LABlab(17.16, 32.68, -32.77)
CIE-LCHlch(17.16, 46.29, 314.92°)
OKLaboklab(30.03% 0.0717 -0.0929)
OKLCHoklch(30.03% 0.117 307.7)
XYZxyz(4.1186, 2.3362, 9.9048)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E165A #325A16
analogous
#1C165A #3E165A #5A1654
triadic
#3E165A #5A3E16 #165A3E
tetradic
#3E165A #5A1C16 #325A16 #16545A
square
#3E165A #5A1C16 #325A16 #16545A
split-complementary
#3E165A #545A16 #165A1C
monochromatic
#110619 #1C0A29 #3E165A #60228B #822EBC

Accessibility & contrast

On white

14.31
#3E165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E165A
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E165A#FFFFFF#000000##FFFFFF
##3E165A1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295C
Deuteranopia (green-blind)
#042B59
Tritanopia (blue-blind)
#392536
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3e165a;
/* rgb */ color: rgb(62, 22, 90);
/* oklch */ color: oklch(30.0% 0.117 307.7);
Tailwind
colors: {
  custom: {
    50: '#765789',
    500: '#3e165a',
    950: '#000000',
  },
}
SCSS
$custom: #3e165a;
$custom-light: #765789;
$custom-dark: #000000;
JSON
{
  "hex": "#3e165a",
  "rgb": {
    "r": 62,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 275.294,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.30033,
    "c": 0.11739,
    "h": 307.7
  },
  "luminance": 0.02336
}

Semantic roles & 50–950 ramp

primary
#3E165A
secondary
#5E913B
accent
#E44486
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3E165A

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

Preview Lab → · Contrast checker → · Palette generator →

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