#3E197C#3E197C

#3E197C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.153 H 293.2°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#3E197C
RGBrgb(62, 25, 124)
HSLhsl(262, 66%, 29%)
HSVhsv(262, 80%, 49%)
CMYKcmyk(50%, 79.8%, 0%, 51.4%)
CIE-LABlab(20.73, 40.45, -49.14)
CIE-LCHlch(20.73, 63.65, 309.46°)
OKLaboklab(33.5% 0.0604 -0.141)
OKLCHoklch(33.5% 0.153 293.2)
XYZxyz(5.9713, 3.1744, 19.3630)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E197C #577C19
analogous
#19267C #3E197C #70197C
triadic
#3E197C #7C3E19 #197C3E
tetradic
#3E197C #7C1926 #577C19 #197C70
square
#3E197C #7C1926 #577C19 #197C70
split-complementary
#3E197C #7C7019 #267C19
monochromatic
#0D0519 #250F49 #3E197C #5723AF #7438D7

Accessibility & contrast

On white

12.84
#3E197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3E197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E197C
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E197C#FFFFFF#000000##FFFFFF
##3E197C1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#2B354A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e197c;
/* rgb */ color: rgb(62, 25, 124);
/* oklch */ color: oklch(33.5% 0.153 293.2);
Tailwind
colors: {
  custom: {
    50: '#7a5aa3',
    500: '#3e197c',
    950: '#000000',
  },
}
SCSS
$custom: #3e197c;
$custom-light: #7a5aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e197c",
  "rgb": {
    "r": 62,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 262.424,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33496,
    "c": 0.15343,
    "h": 293.2
  },
  "luminance": 0.03175
}

Semantic roles & 50–950 ramp

primary
#3E197C
secondary
#87B040
accent
#E93EA9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E197C

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

Preview Lab → · Contrast checker → · Palette generator →

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