#3E1683#3E1683

#3E1683 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.164 H 291.6°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#3E1683
RGBrgb(62, 22, 131)
HSLhsl(262, 71%, 30%)
HSVhsv(262, 83%, 51%)
CMYKcmyk(52.7%, 83.2%, 0%, 48.6%)
CIE-LABlab(20.97, 43.75, -53.19)
CIE-LCHlch(20.97, 68.87, 309.44°)
OKLaboklab(33.87% 0.0604 -0.1529)
OKLCHoklch(33.87% 0.164 291.6)
XYZxyz(6.3691, 3.2364, 21.7574)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1683 #5B8316
analogous
#162583 #3E1683 #741683
triadic
#3E1683 #833E16 #16833E
tetradic
#3E1683 #831625 #5B8316 #168374
square
#3E1683 #831625 #5B8316 #168374
split-complementary
#3E1683 #837416 #258316
monochromatic
#0C041A #250D4F #3E1683 #571FB7 #7336DD

Accessibility & contrast

On white

12.75
#3E1683 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3E1683 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1683
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1683#FFFFFF#000000##FFFFFF
##3E16831.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#26364D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e1683;
/* rgb */ color: rgb(62, 22, 131);
/* oklch */ color: oklch(33.9% 0.164 291.6);
Tailwind
colors: {
  custom: {
    50: '#7c59a8',
    500: '#3e1683',
    950: '#000000',
  },
}
SCSS
$custom: #3e1683;
$custom-light: #7c59a8;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1683",
  "rgb": {
    "r": 62,
    "g": 22,
    "b": 131
  },
  "hsl": {
    "h": 262.018,
    "s": 71.242,
    "l": 30
  },
  "oklch": {
    "l": 0.33874,
    "c": 0.16435,
    "h": 291.6
  },
  "luminance": 0.03237
}

Semantic roles & 50–950 ramp

primary
#3E1683
secondary
#8BB73D
accent
#EE3AAC
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3E1683

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

Preview Lab → · Contrast checker → · Palette generator →

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