#3F186A#3F186A

#3F186A is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.134 H 300.5°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#3F186A
RGBrgb(63, 24, 106)
HSLhsl(269, 63%, 25%)
HSVhsv(269, 77%, 42%)
CMYKcmyk(40.6%, 77.4%, 0%, 58.4%)
CIE-LABlab(19.02, 36.13, -40.34)
CIE-LCHlch(19.02, 54.15, 311.85°)
OKLaboklab(31.81% 0.0679 -0.1151)
OKLCHoklch(31.81% 0.134 300.5)
XYZxyz(4.9774, 2.7506, 13.9016)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F186A #436A18
analogous
#181A6A #3F186A #68186A
triadic
#3F186A #6A3F18 #186A3F
tetradic
#3F186A #6A181A #436A18 #186A68
square
#3F186A #6A181A #436A18 #186A68
split-complementary
#3F186A #6A6818 #1A6A18
monochromatic
#0F0619 #210D38 #3F186A #5D239C #7A2FCE

Accessibility & contrast

On white

13.55
#3F186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3F186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F186A
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F186A#FFFFFF#000000##FFFFFF
##3F186A1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f186a;
/* rgb */ color: rgb(63, 24, 106);
/* oklch */ color: oklch(31.8% 0.134 300.5);
Tailwind
colors: {
  custom: {
    50: '#795995',
    500: '#3f186a',
    950: '#000000',
  },
}
SCSS
$custom: #3f186a;
$custom-light: #795995;
$custom-dark: #000000;
JSON
{
  "hex": "#3f186a",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 268.537,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31805,
    "c": 0.13366,
    "h": 300.5
  },
  "luminance": 0.02751
}

Semantic roles & 50–950 ramp

primary
#3F186A
secondary
#71A03E
accent
#E64298
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3F186A

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

Preview Lab → · Contrast checker → · Palette generator →

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