#3E198D#3E198D

#3E198D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.173 H 288.5°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#3E198D
RGBrgb(62, 25, 141)
HSLhsl(259, 70%, 33%)
HSVhsv(259, 82%, 55%)
CMYKcmyk(56%, 82.3%, 0%, 44.7%)
CIE-LABlab(22.45, 45.24, -57.02)
CIE-LCHlch(22.45, 72.78, 308.43°)
OKLaboklab(35.21% 0.0549 -0.1641)
OKLCHoklch(35.21% 0.173 288.5)
XYZxyz(7.1405, 3.6421, 25.5209)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E198D #688D19
analogous
#192E8D #3E198D #78198D
triadic
#3E198D #8D3E19 #198D3E
tetradic
#3E198D #8D192E #688D19 #198D78
square
#3E198D #8D192E #688D19 #198D78
split-complementary
#3E198D #8D7819 #2E8D19
monochromatic
#100725 #271059 #3E198D #5522C1 #7443DE

Accessibility & contrast

On white

12.15
#3E198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3E198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E198D
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E198D#FFFFFF#000000##FFFFFF
##3E198D1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#1D3C54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e198d;
/* rgb */ color: rgb(62, 25, 141);
/* oklch */ color: oklch(35.2% 0.173 288.5);
Tailwind
colors: {
  custom: {
    50: '#7d5caf',
    500: '#3e198d',
    950: '#000000',
  },
}
SCSS
$custom: #3e198d;
$custom-light: #7d5caf;
$custom-dark: #000000;
JSON
{
  "hex": "#3e198d",
  "rgb": {
    "r": 62,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 259.138,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35213,
    "c": 0.173,
    "h": 288.5
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#3E198D
secondary
#97BF43
accent
#ED3BB4
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3E198D

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

Preview Lab → · Contrast checker → · Palette generator →

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