#3E186F#3E186F

#3E186F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.139 H 297.8°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#3E186F
RGBrgb(62, 24, 111)
HSLhsl(266, 64%, 26%)
HSVhsv(266, 78%, 44%)
CMYKcmyk(44.1%, 78.4%, 0%, 56.5%)
CIE-LABlab(19.33, 37.31, -43.08)
CIE-LCHlch(19.33, 56.99, 310.89°)
OKLaboklab(32.14% 0.0651 -0.1232)
OKLCHoklch(32.14% 0.139 297.8)
XYZxyz(5.1817, 2.8250, 15.3081)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E186F #496F18
analogous
#181E6F #3E186F #6A186F
triadic
#3E186F #6F3E18 #186F3E
tetradic
#3E186F #6F181E #496F18 #186F6A
square
#3E186F #6F181E #496F18 #186F6A
split-complementary
#3E186F #6F6A18 #1E6F18
monochromatic
#0E0519 #220D3D #3E186F #5A23A1 #762FD2

Accessibility & contrast

On white

13.42
#3E186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3E186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E186F
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E186F#FFFFFF#000000##FFFFFF
##3E186F1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#322F42
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3e186f;
/* rgb */ color: rgb(62, 24, 111);
/* oklch */ color: oklch(32.1% 0.139 297.8);
Tailwind
colors: {
  custom: {
    50: '#795999',
    500: '#3e186f',
    950: '#000000',
  },
}
SCSS
$custom: #3e186f;
$custom-light: #795999;
$custom-dark: #000000;
JSON
{
  "hex": "#3e186f",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 266.207,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32135,
    "c": 0.13935,
    "h": 297.8
  },
  "luminance": 0.02825
}

Semantic roles & 50–950 ramp

primary
#3E186F
secondary
#78A53E
accent
#E7409E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3E186F

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

Preview Lab → · Contrast checker → · Palette generator →

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