#3E197B#3E197B

#3E197B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.152 H 293.5°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#3E197B
RGBrgb(62, 25, 123)
HSLhsl(263, 66%, 29%)
HSVhsv(263, 80%, 48%)
CMYKcmyk(49.6%, 79.7%, 0%, 51.8%)
CIE-LABlab(20.63, 40.17, -48.67)
CIE-LCHlch(20.63, 63.10, 309.54°)
OKLaboklab(33.4% 0.0607 -0.1396)
OKLCHoklch(33.4% 0.152 293.5)
XYZxyz(5.9084, 3.1493, 19.0316)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E197B #567B19
analogous
#19257B #3E197B #6F197B
triadic
#3E197B #7B3E19 #197B3E
tetradic
#3E197B #7B1925 #567B19 #197B6F
square
#3E197B #7B1925 #567B19 #197B6F
split-complementary
#3E197B #7B6F19 #257B19
monochromatic
#0D0519 #240F48 #3E197B #5823AE #7438D7

Accessibility & contrast

On white

12.89
#3E197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E197B
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E197B#FFFFFF#000000##FFFFFF
##3E197B1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#2B3449
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e197b;
/* rgb */ color: rgb(62, 25, 123);
/* oklch */ color: oklch(33.4% 0.152 293.5);
Tailwind
colors: {
  custom: {
    50: '#7a5aa2',
    500: '#3e197b',
    950: '#000000',
  },
}
SCSS
$custom: #3e197b;
$custom-light: #7a5aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e197b",
  "rgb": {
    "r": 62,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 262.653,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33398,
    "c": 0.15227,
    "h": 293.5
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#3E197B
secondary
#86AF40
accent
#E93FA9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E197B

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

Preview Lab → · Contrast checker → · Palette generator →

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