#3E187E#3E187E

#3E187E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.157 H 292.7°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#3E187E
RGBrgb(62, 24, 126)
HSLhsl(262, 68%, 29%)
HSVhsv(262, 81%, 49%)
CMYKcmyk(50.8%, 81%, 0%, 50.6%)
CIE-LABlab(20.76, 41.48, -50.36)
CIE-LCHlch(20.76, 65.24, 309.48°)
OKLaboklab(33.58% 0.0606 -0.1446)
OKLCHoklch(33.58% 0.157 292.7)
XYZxyz(6.0781, 3.1835, 20.0289)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E187E #587E18
analogous
#18257E #3E187E #71187E
triadic
#3E187E #7E3E18 #187E3E
tetradic
#3E187E #7E1825 #587E18 #187E71
square
#3E187E #7E1825 #587E18 #187E71
split-complementary
#3E187E #7E7118 #257E18
monochromatic
#0D051A #250E4B #3E187E #5722B1 #7437D9

Accessibility & contrast

On white

12.83
#3E187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3E187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E187E
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E187E#FFFFFF#000000##FFFFFF
##3E187E1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#29354B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e187e;
/* rgb */ color: rgb(62, 24, 126);
/* oklch */ color: oklch(33.6% 0.157 292.7);
Tailwind
colors: {
  custom: {
    50: '#7b5aa4',
    500: '#3e187e',
    950: '#000000',
  },
}
SCSS
$custom: #3e187e;
$custom-light: #7b5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e187e",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 262.353,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3358,
    "c": 0.15677,
    "h": 292.7
  },
  "luminance": 0.03184
}

Semantic roles & 50–950 ramp

primary
#3E187E
secondary
#88B23F
accent
#EB3DAA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E187E

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

Preview Lab → · Contrast checker → · Palette generator →

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