#3E197F#3E197F

#3E197F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.157 H 292.3°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#3E197F
RGBrgb(62, 25, 127)
HSLhsl(262, 67%, 30%)
HSVhsv(262, 80%, 50%)
CMYKcmyk(51.2%, 80.3%, 0%, 50.2%)
CIE-LABlab(21.02, 41.30, -50.57)
CIE-LCHlch(21.02, 65.29, 309.24°)
OKLaboklab(33.79% 0.0595 -0.1452)
OKLCHoklch(33.79% 0.157 292.3)
XYZxyz(6.1639, 3.2515, 20.3774)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E197F #5A7F19
analogous
#19277F #3E197F #71197F
triadic
#3E197F #7F3E19 #197F3E
tetradic
#3E197F #7F1927 #5A7F19 #197F71
square
#3E197F #7F1927 #5A7F19 #197F71
split-complementary
#3E197F #7F7119 #277F19
monochromatic
#0C051A #250F4C #3E197F #5723B2 #743AD8

Accessibility & contrast

On white

12.72
#3E197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E197F
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E197F#FFFFFF#000000##FFFFFF
##3E197F1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#29364C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e197f;
/* rgb */ color: rgb(62, 25, 127);
/* oklch */ color: oklch(33.8% 0.157 292.3);
Tailwind
colors: {
  custom: {
    50: '#7b5ba5',
    500: '#3e197f',
    950: '#000000',
  },
}
SCSS
$custom: #3e197f;
$custom-light: #7b5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e197f",
  "rgb": {
    "r": 62,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 261.765,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33791,
    "c": 0.15691,
    "h": 292.3
  },
  "luminance": 0.03252
}

Semantic roles & 50–950 ramp

primary
#3E197F
secondary
#8AB341
accent
#EA3EAC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E197F

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

Preview Lab → · Contrast checker → · Palette generator →

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