#3E187C#3E187C

#3E187C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.154 H 293.4°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#3E187C
RGBrgb(62, 24, 124)
HSLhsl(263, 68%, 29%)
HSVhsv(263, 81%, 49%)
CMYKcmyk(50%, 80.6%, 0%, 51.4%)
CIE-LABlab(20.57, 40.92, -49.41)
CIE-LCHlch(20.57, 64.15, 309.63°)
OKLaboklab(33.38% 0.0613 -0.1418)
OKLCHoklch(33.38% 0.154 293.4)
XYZxyz(5.9503, 3.1324, 19.3560)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E187C #567C18
analogous
#18247C #3E187C #70187C
triadic
#3E187C #7C3E18 #187C3E
tetradic
#3E187C #7C1824 #567C18 #187C70
square
#3E187C #7C1824 #567C18 #187C70
split-complementary
#3E187C #7C7018 #247C18
monochromatic
#0D051A #240E49 #3E187C #5822AF #7436D8

Accessibility & contrast

On white

12.91
#3E187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3E187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E187C
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E187C#FFFFFF#000000##FFFFFF
##3E187C1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#2B344A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e187c;
/* rgb */ color: rgb(62, 24, 124);
/* oklch */ color: oklch(33.4% 0.154 293.4);
Tailwind
colors: {
  custom: {
    50: '#7b5aa3',
    500: '#3e187c',
    950: '#000000',
  },
}
SCSS
$custom: #3e187c;
$custom-light: #7b5aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e187c",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 262.8,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33382,
    "c": 0.15446,
    "h": 293.4
  },
  "luminance": 0.03133
}

Semantic roles & 50–950 ramp

primary
#3E187C
secondary
#86B13F
accent
#EA3DA9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E187C

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

Preview Lab → · Contrast checker → · Palette generator →

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