#3E1776#3E1776

#3E1776 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.149 H 295.5°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#3E1776
RGBrgb(62, 23, 118)
HSLhsl(265, 67%, 28%)
HSVhsv(265, 81%, 46%)
CMYKcmyk(47.5%, 80.5%, 0%, 53.7%)
CIE-LABlab(19.82, 39.72, -46.80)
CIE-LCHlch(19.82, 61.38, 310.32°)
OKLaboklab(32.68% 0.064 -0.1341)
OKLCHoklch(32.68% 0.149 295.5)
XYZxyz(5.5621, 2.9448, 17.4114)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1776 #4F7617
analogous
#171F76 #3E1776 #6E1776
triadic
#3E1776 #763E17 #17763E
tetradic
#3E1776 #76171F #4F7617 #17766E
square
#3E1776 #76171F #4F7617 #17766E
split-complementary
#3E1776 #766E17 #1F7617
monochromatic
#0D051A #230D43 #3E1776 #5921A9 #7531D7

Accessibility & contrast

On white

13.22
#3E1776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3E1776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1776
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1776#FFFFFF#000000##FFFFFF
##3E17761.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002E74
Tritanopia (blue-blind)
#2E3146
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3e1776;
/* rgb */ color: rgb(62, 23, 118);
/* oklch */ color: oklch(32.7% 0.149 295.5);
Tailwind
colors: {
  custom: {
    50: '#7a599e',
    500: '#3e1776',
    950: '#000000',
  },
}
SCSS
$custom: #3e1776;
$custom-light: #7a599e;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1776",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 264.632,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32683,
    "c": 0.1486,
    "h": 295.5
  },
  "luminance": 0.02945
}

Semantic roles & 50–950 ramp

primary
#3E1776
secondary
#7EAB3E
accent
#EA3EA3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3E1776

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

Preview Lab → · Contrast checker → · Palette generator →

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