#3E187F#3E187F

#3E187F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.158 H 292.4°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#3E187F
RGBrgb(62, 24, 127)
HSLhsl(262, 68%, 30%)
HSVhsv(262, 81%, 50%)
CMYKcmyk(51.2%, 81.1%, 0%, 50.2%)
CIE-LABlab(20.86, 41.76, -50.83)
CIE-LCHlch(20.86, 65.78, 309.40°)
OKLaboklab(33.68% 0.0603 -0.146)
OKLCHoklch(33.68% 0.158 292.4)
XYZxyz(6.1429, 3.2095, 20.3704)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E187F #597F18
analogous
#18267F #3E187F #72187F
triadic
#3E187F #7F3E18 #187F3E
tetradic
#3E187F #7F1826 #597F18 #187F72
square
#3E187F #7F1826 #597F18 #187F72
split-complementary
#3E187F #7F7218 #267F18
monochromatic
#0D051A #250E4C #3E187F #5722B2 #7438D9

Accessibility & contrast

On white

12.79
#3E187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E187F
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E187F#FFFFFF#000000##FFFFFF
##3E187F1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e187f;
/* rgb */ color: rgb(62, 24, 127);
/* oklch */ color: oklch(33.7% 0.158 292.4);
Tailwind
colors: {
  custom: {
    50: '#7b5aa5',
    500: '#3e187f',
    950: '#000000',
  },
}
SCSS
$custom: #3e187f;
$custom-light: #7b5aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e187f",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 262.136,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3368,
    "c": 0.15792,
    "h": 292.4
  },
  "luminance": 0.0321
}

Semantic roles & 50–950 ramp

primary
#3E187F
secondary
#89B33F
accent
#EB3DAB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E187F

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

Preview Lab → · Contrast checker → · Palette generator →

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