#3E197A#3E197A

#3E197A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.151 H 293.8°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#3E197A
RGBrgb(62, 25, 122)
HSLhsl(263, 66%, 29%)
HSVhsv(263, 80%, 48%)
CMYKcmyk(49.2%, 79.5%, 0%, 52.2%)
CIE-LABlab(20.54, 39.89, -48.19)
CIE-LCHlch(20.54, 62.55, 309.62°)
OKLaboklab(33.3% 0.061 -0.1382)
OKLCHoklch(33.3% 0.151 293.8)
XYZxyz(5.8461, 3.1244, 18.7036)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E197A #557A19
analogous
#19257A #3E197A #6F197A
triadic
#3E197A #7A3E19 #197A3E
tetradic
#3E197A #7A1925 #557A19 #197A6F
square
#3E197A #7A1925 #557A19 #197A6F
split-complementary
#3E197A #7A6F19 #257A19
monochromatic
#0D0519 #240F47 #3E197A #5823AD #7437D6

Accessibility & contrast

On white

12.92
#3E197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3E197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E197A
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E197A#FFFFFF#000000##FFFFFF
##3E197A1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#2C3449
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e197a;
/* rgb */ color: rgb(62, 25, 122);
/* oklch */ color: oklch(33.3% 0.151 293.8);
Tailwind
colors: {
  custom: {
    50: '#7a5aa1',
    500: '#3e197a',
    950: '#000000',
  },
}
SCSS
$custom: #3e197a;
$custom-light: #7a5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e197a",
  "rgb": {
    "r": 62,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 262.887,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33301,
    "c": 0.15109,
    "h": 293.8
  },
  "luminance": 0.03125
}

Semantic roles & 50–950 ramp

primary
#3E197A
secondary
#84AF40
accent
#E93FA8
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E197A

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

Preview Lab → · Contrast checker → · Palette generator →

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