#3E188F#3E188F

#3E188F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.176 H 288.1°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#3E188F
RGBrgb(62, 24, 143)
HSLhsl(259, 71%, 33%)
HSVhsv(259, 83%, 56%)
CMYKcmyk(56.6%, 83.2%, 0%, 43.9%)
CIE-LABlab(22.51, 46.23, -58.16)
CIE-LCHlch(22.51, 74.29, 308.48°)
OKLaboklab(35.32% 0.0548 -0.1674)
OKLCHoklch(35.32% 0.176 288.1)
XYZxyz(7.2697, 3.6602, 26.3047)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E188F #698F18
analogous
#182D8F #3E188F #7A188F
triadic
#3E188F #8F3E18 #188F3E
tetradic
#3E188F #8F182D #698F18 #188F7A
square
#3E188F #8F182D #698F18 #188F7A
split-complementary
#3E188F #8F7A18 #2D8F18
monochromatic
#110626 #270F5B #3E188F #5521C3 #7442DF

Accessibility & contrast

On white

12.12
#3E188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3E188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E188F
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E188F#FFFFFF#000000##FFFFFF
##3E188F1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#1B3C55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e188f;
/* rgb */ color: rgb(62, 24, 143);
/* oklch */ color: oklch(35.3% 0.176 288.1);
Tailwind
colors: {
  custom: {
    50: '#7e5bb1',
    500: '#3e188f',
    950: '#000000',
  },
}
SCSS
$custom: #3e188f;
$custom-light: #7e5bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e188f",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 259.16,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3532,
    "c": 0.17613,
    "h": 288.1
  },
  "luminance": 0.03661
}

Semantic roles & 50–950 ramp

primary
#3E188F
secondary
#98C043
accent
#EE3AB4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3E188F

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

Preview Lab → · Contrast checker → · Palette generator →

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