#3E187B#3E187B

#3E187B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.153 H 293.7°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#3E187B
RGBrgb(62, 24, 123)
HSLhsl(263, 67%, 29%)
HSVhsv(263, 80%, 48%)
CMYKcmyk(49.6%, 80.5%, 0%, 51.8%)
CIE-LABlab(20.47, 40.64, -48.93)
CIE-LCHlch(20.47, 63.61, 309.71°)
OKLaboklab(33.28% 0.0616 -0.1404)
OKLCHoklch(33.28% 0.153 293.7)
XYZxyz(5.8874, 3.1073, 19.0246)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E187B #557B18
analogous
#18247B #3E187B #70187B
triadic
#3E187B #7B3E18 #187B3E
tetradic
#3E187B #7B1824 #557B18 #187B70
square
#3E187B #7B1824 #557B18 #187B70
split-complementary
#3E187B #7B7018 #247B18
monochromatic
#0D051A #240E48 #3E187B #5822AE #7436D8

Accessibility & contrast

On white

12.95
#3E187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3E187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E187B
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E187B#FFFFFF#000000##FFFFFF
##3E187B1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#2B3449
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e187b;
/* rgb */ color: rgb(62, 24, 123);
/* oklch */ color: oklch(33.3% 0.153 293.7);
Tailwind
colors: {
  custom: {
    50: '#7a5aa2',
    500: '#3e187b',
    950: '#000000',
  },
}
SCSS
$custom: #3e187b;
$custom-light: #7a5aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e187b",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 263.03,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33284,
    "c": 0.15331,
    "h": 293.7
  },
  "luminance": 0.03107
}

Semantic roles & 50–950 ramp

primary
#3E187B
secondary
#84B03F
accent
#EA3EA8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E187B

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

Preview Lab → · Contrast checker → · Palette generator →

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