#3F186F#3F186F

#3F186F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.139 H 298.5°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#3F186F
RGBrgb(63, 24, 111)
HSLhsl(267, 64%, 26%)
HSVhsv(267, 78%, 44%)
CMYKcmyk(43.2%, 78.4%, 0%, 56.5%)
CIE-LABlab(19.46, 37.49, -42.86)
CIE-LCHlch(19.46, 56.94, 311.18°)
OKLaboklab(32.26% 0.0667 -0.1225)
OKLCHoklch(32.26% 0.139 298.5)
XYZxyz(5.2450, 2.8576, 15.3111)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F186F #486F18
analogous
#181D6F #3F186F #6B186F
triadic
#3F186F #6F3F18 #186F3F
tetradic
#3F186F #6F181D #486F18 #186F6B
square
#3F186F #6F181D #486F18 #186F6B
split-complementary
#3F186F #6F6B18 #1D6F18
monochromatic
#0E0519 #220D3D #3F186F #5C23A1 #782FD2

Accessibility & contrast

On white

13.36
#3F186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3F186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F186F
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F186F#FFFFFF#000000##FFFFFF
##3F186F1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#332F42
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3f186f;
/* rgb */ color: rgb(63, 24, 111);
/* oklch */ color: oklch(32.3% 0.139 298.5);
Tailwind
colors: {
  custom: {
    50: '#795999',
    500: '#3f186f',
    950: '#000000',
  },
}
SCSS
$custom: #3f186f;
$custom-light: #795999;
$custom-dark: #000000;
JSON
{
  "hex": "#3f186f",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 266.897,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32261,
    "c": 0.13949,
    "h": 298.5
  },
  "luminance": 0.02858
}

Semantic roles & 50–950 ramp

primary
#3F186F
secondary
#77A53E
accent
#E7409D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F186F

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

Preview Lab → · Contrast checker → · Palette generator →

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