#3E186D#3E186D

#3E186D is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.137 H 298.6°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#3E186D
RGBrgb(62, 24, 109)
HSLhsl(267, 64%, 26%)
HSVhsv(267, 78%, 43%)
CMYKcmyk(43.1%, 78%, 0%, 57.3%)
CIE-LABlab(19.15, 36.76, -42.08)
CIE-LCHlch(19.15, 55.88, 311.14°)
OKLaboklab(31.95% 0.0656 -0.1203)
OKLCHoklch(31.95% 0.137 298.6)
XYZxyz(5.0729, 2.7815, 14.7346)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E186D #476D18
analogous
#181C6D #3E186D #68186D
triadic
#3E186D #6D3E18 #186D3E
tetradic
#3E186D #6D181C #476D18 #186D68
square
#3E186D #6D181C #476D18 #186D68
split-complementary
#3E186D #6D6818 #1C6D18
monochromatic
#0E0619 #210D3B #3E186D #5B239F #772ED1

Accessibility & contrast

On white

13.49
#3E186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3E186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E186D
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E186D#FFFFFF#000000##FFFFFF
##3E186D1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6F
Deuteranopia (green-blind)
#002E6B
Tritanopia (blue-blind)
#322E41
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3e186d;
/* rgb */ color: rgb(62, 24, 109);
/* oklch */ color: oklch(31.9% 0.137 298.6);
Tailwind
colors: {
  custom: {
    50: '#785998',
    500: '#3e186d',
    950: '#000000',
  },
}
SCSS
$custom: #3e186d;
$custom-light: #785998;
$custom-dark: #000000;
JSON
{
  "hex": "#3e186d",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 266.824,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.3195,
    "c": 0.13701,
    "h": 298.6
  },
  "luminance": 0.02782
}

Semantic roles & 50–950 ramp

primary
#3E186D
secondary
#76A33E
accent
#E7419D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3E186D

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

Preview Lab → · Contrast checker → · Palette generator →

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