#3E186A#3E186A

#3E186A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.133 H 299.8°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#3E186A
RGBrgb(62, 24, 106)
HSLhsl(268, 63%, 25%)
HSVhsv(268, 77%, 42%)
CMYKcmyk(41.5%, 77.4%, 0%, 58.4%)
CIE-LABlab(18.88, 35.94, -40.57)
CIE-LCHlch(18.88, 54.20, 311.53°)
OKLaboklab(31.68% 0.0663 -0.1158)
OKLCHoklch(31.68% 0.133 299.8)
XYZxyz(4.9141, 2.7180, 13.8986)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E186A #446A18
analogous
#181B6A #3E186A #67186A
triadic
#3E186A #6A3E18 #186A3E
tetradic
#3E186A #6A181B #446A18 #186A67
square
#3E186A #6A181B #446A18 #186A67
split-complementary
#3E186A #6A6718 #1B6A18
monochromatic
#0F0619 #210D38 #3E186A #5B239C #782FCE

Accessibility & contrast

On white

13.60
#3E186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3E186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E186A
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E186A#FFFFFF#000000##FFFFFF
##3E186A1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#002D68
Tritanopia (blue-blind)
#342D3F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3e186a;
/* rgb */ color: rgb(62, 24, 106);
/* oklch */ color: oklch(31.7% 0.133 299.8);
Tailwind
colors: {
  custom: {
    50: '#785995',
    500: '#3e186a',
    950: '#000000',
  },
}
SCSS
$custom: #3e186a;
$custom-light: #785995;
$custom-dark: #000000;
JSON
{
  "hex": "#3e186a",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 267.805,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31677,
    "c": 0.13348,
    "h": 299.8
  },
  "luminance": 0.02718
}

Semantic roles & 50–950 ramp

primary
#3E186A
secondary
#72A03E
accent
#E6429A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3E186A

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

Preview Lab → · Contrast checker → · Palette generator →

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