#3E188D#3E188D

#3E188D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.174 H 288.6°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#3E188D
RGBrgb(62, 24, 141)
HSLhsl(259, 71%, 32%)
HSVhsv(259, 83%, 55%)
CMYKcmyk(56%, 83%, 0%, 44.7%)
CIE-LABlab(22.30, 45.67, -57.26)
CIE-LCHlch(22.30, 73.25, 308.58°)
OKLaboklab(35.11% 0.0555 -0.1648)
OKLCHoklch(35.11% 0.174 288.6)
XYZxyz(7.1195, 3.6001, 25.5139)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E188D #678D18
analogous
#182D8D #3E188D #78188D
triadic
#3E188D #8D3E18 #188D3E
tetradic
#3E188D #8D182D #678D18 #188D78
square
#3E188D #8D182D #678D18 #188D78
split-complementary
#3E188D #8D7818 #2D8D18
monochromatic
#100624 #270F59 #3E188D #5521C1 #7441DF

Accessibility & contrast

On white

12.21
#3E188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3E188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E188D
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E188D#FFFFFF#000000##FFFFFF
##3E188D1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#1D3B53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e188d;
/* rgb */ color: rgb(62, 24, 141);
/* oklch */ color: oklch(35.1% 0.174 288.6);
Tailwind
colors: {
  custom: {
    50: '#7d5baf',
    500: '#3e188d',
    950: '#000000',
  },
}
SCSS
$custom: #3e188d;
$custom-light: #7d5baf;
$custom-dark: #000000;
JSON
{
  "hex": "#3e188d",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 259.487,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35111,
    "c": 0.17387,
    "h": 288.6
  },
  "luminance": 0.036
}

Semantic roles & 50–950 ramp

primary
#3E188D
secondary
#96BF42
accent
#EE3AB3
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3E188D

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

Preview Lab → · Contrast checker → · Palette generator →

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