#3F167F#3F167F

#3F167F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.160 H 293.4°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#3F167F
RGBrgb(63, 22, 127)
HSLhsl(263, 70%, 29%)
HSVhsv(263, 83%, 50%)
CMYKcmyk(50.4%, 82.7%, 0%, 50.2%)
CIE-LABlab(20.68, 42.79, -51.12)
CIE-LCHlch(20.68, 66.66, 309.93°)
OKLaboklab(33.58% 0.0635 -0.1467)
OKLCHoklch(33.58% 0.16 293.4)
XYZxyz(6.1665, 3.1627, 20.3601)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F167F #567F16
analogous
#16217F #3F167F #74167F
triadic
#3F167F #7F3F16 #167F3F
tetradic
#3F167F #7F1621 #567F16 #167F74
square
#3F167F #7F1621 #567F16 #167F74
split-complementary
#3F167F #7F7416 #217F16
monochromatic
#0D051A #250D4B #3F167F #591FB3 #7534DC

Accessibility & contrast

On white

12.86
#3F167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3F167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F167F
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F167F#FFFFFF#000000##FFFFFF
##3F167F1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#2B344B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f167f;
/* rgb */ color: rgb(63, 22, 127);
/* oklch */ color: oklch(33.6% 0.160 293.4);
Tailwind
colors: {
  custom: {
    50: '#7c59a5',
    500: '#3f167f',
    950: '#000000',
  },
}
SCSS
$custom: #3f167f;
$custom-light: #7c59a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f167f",
  "rgb": {
    "r": 63,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 263.429,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33583,
    "c": 0.15988,
    "h": 293.4
  },
  "luminance": 0.03163
}

Semantic roles & 50–950 ramp

primary
#3F167F
secondary
#85B43D
accent
#ED3BA7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F167F

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

Preview Lab → · Contrast checker → · Palette generator →

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