#3F166F#3F166F

#3F166F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.142 H 298.9°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#3F166F
RGBrgb(63, 22, 111)
HSLhsl(268, 67%, 26%)
HSVhsv(268, 80%, 44%)
CMYKcmyk(43.2%, 80.2%, 0%, 56.5%)
CIE-LABlab(19.13, 38.44, -43.40)
CIE-LCHlch(19.13, 57.98, 311.53°)
OKLaboklab(32.03% 0.0685 -0.1241)
OKLCHoklch(32.03% 0.142 298.9)
XYZxyz(5.2053, 2.7782, 15.2978)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F166F #466F16
analogous
#161A6F #3F166F #6B166F
triadic
#3F166F #6F3F16 #166F3F
tetradic
#3F166F #6F161A #466F16 #166F6B
square
#3F166F #6F161A #466F16 #166F6B
split-complementary
#3F166F #6F6B16 #1A6F16
monochromatic
#0E051A #220C3C #3F166F #5C20A2 #792BD5

Accessibility & contrast

On white

13.50
#3F166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3F166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F166F
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F166F#FFFFFF#000000##FFFFFF
##3F166F1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#332E42
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3f166f;
/* rgb */ color: rgb(63, 22, 111);
/* oklch */ color: oklch(32.0% 0.142 298.9);
Tailwind
colors: {
  custom: {
    50: '#795899',
    500: '#3f166f',
    950: '#000000',
  },
}
SCSS
$custom: #3f166f;
$custom-light: #795899;
$custom-dark: #000000;
JSON
{
  "hex": "#3f166f",
  "rgb": {
    "r": 63,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 267.64,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32028,
    "c": 0.14178,
    "h": 298.9
  },
  "luminance": 0.02778
}

Semantic roles & 50–950 ramp

primary
#3F166F
secondary
#75A53C
accent
#EA3E9B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F166F

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

Preview Lab → · Contrast checker → · Palette generator →

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