#3E186E#3E186E

#3E186E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.138 H 298.2°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#3E186E
RGBrgb(62, 24, 110)
HSLhsl(267, 64%, 26%)
HSVhsv(267, 78%, 43%)
CMYKcmyk(43.6%, 78.2%, 0%, 56.9%)
CIE-LABlab(19.24, 37.03, -42.58)
CIE-LCHlch(19.24, 56.44, 311.01°)
OKLaboklab(32.04% 0.0653 -0.1218)
OKLCHoklch(32.04% 0.138 298.2)
XYZxyz(5.1270, 2.8031, 15.0198)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E186E #486E18
analogous
#181D6E #3E186E #69186E
triadic
#3E186E #6E3E18 #186E3E
tetradic
#3E186E #6E181D #486E18 #186E69
square
#3E186E #6E181D #486E18 #186E69
split-complementary
#3E186E #6E6918 #1D6E18
monochromatic
#0E0519 #220D3C #3E186E #5A23A0 #772FD2

Accessibility & contrast

On white

13.46
#3E186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E186E
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E186E#FFFFFF#000000##FFFFFF
##3E186E1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#002E6C
Tritanopia (blue-blind)
#322E42
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3e186e;
/* rgb */ color: rgb(62, 24, 110);
/* oklch */ color: oklch(32.0% 0.138 298.2);
Tailwind
colors: {
  custom: {
    50: '#795998',
    500: '#3e186e',
    950: '#000000',
  },
}
SCSS
$custom: #3e186e;
$custom-light: #795998;
$custom-dark: #000000;
JSON
{
  "hex": "#3e186e",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 266.512,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32043,
    "c": 0.13819,
    "h": 298.2
  },
  "luminance": 0.02803
}

Semantic roles & 50–950 ramp

primary
#3E186E
secondary
#77A43E
accent
#E7419E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3E186E

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

Preview Lab → · Contrast checker → · Palette generator →

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