#3E197E#3E197E

#3E197E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.156 H 292.6°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#3E197E
RGBrgb(62, 25, 126)
HSLhsl(262, 67%, 30%)
HSVhsv(262, 80%, 49%)
CMYKcmyk(50.8%, 80.2%, 0%, 50.6%)
CIE-LABlab(20.93, 41.02, -50.09)
CIE-LCHlch(20.93, 64.74, 309.31°)
OKLaboklab(33.69% 0.0598 -0.1438)
OKLCHoklch(33.69% 0.156 292.6)
XYZxyz(6.0991, 3.2255, 20.0359)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E197E #597E19
analogous
#19277E #3E197E #71197E
triadic
#3E197E #7E3E19 #197E3E
tetradic
#3E197E #7E1927 #597E19 #197E71
square
#3E197E #7E1927 #597E19 #197E71
split-complementary
#3E197E #7E7119 #277E19
monochromatic
#0D051A #250F4B #3E197E #5723B1 #743AD8

Accessibility & contrast

On white

12.76
#3E197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E197E
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E197E#FFFFFF#000000##FFFFFF
##3E197E1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#29354B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e197e;
/* rgb */ color: rgb(62, 25, 126);
/* oklch */ color: oklch(33.7% 0.156 292.6);
Tailwind
colors: {
  custom: {
    50: '#7b5ba4',
    500: '#3e197e',
    950: '#000000',
  },
}
SCSS
$custom: #3e197e;
$custom-light: #7b5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e197e",
  "rgb": {
    "r": 62,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 261.98,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33692,
    "c": 0.15575,
    "h": 292.6
  },
  "luminance": 0.03226
}

Semantic roles & 50–950 ramp

primary
#3E197E
secondary
#89B241
accent
#EA3EAB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E197E

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

Preview Lab → · Contrast checker → · Palette generator →

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