#3F168F#3F168F

#3F168F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.178 H 288.9°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#3F168F
RGBrgb(63, 22, 143)
HSLhsl(260, 73%, 32%)
HSVhsv(260, 85%, 56%)
CMYKcmyk(55.9%, 84.6%, 0%, 43.9%)
CIE-LABlab(22.35, 47.17, -58.43)
CIE-LCHlch(22.35, 75.09, 308.92°)
OKLaboklab(35.23% 0.0576 -0.1681)
OKLCHoklch(35.23% 0.178 288.9)
XYZxyz(7.2933, 3.6134, 26.2944)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F168F #668F16
analogous
#16298F #3F168F #7C168F
triadic
#3F168F #8F3F16 #168F3F
tetradic
#3F168F #8F1629 #668F16 #168F7C
square
#3F168F #8F1629 #668F16 #168F7C
split-complementary
#3F168F #8F7C16 #298F16
monochromatic
#100625 #280E5A #3F168F #561EC4 #753EE1

Accessibility & contrast

On white

12.19
#3F168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3F168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F168F
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F168F#FFFFFF#000000##FFFFFF
##3F168F1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#1E3B54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f168f;
/* rgb */ color: rgb(63, 22, 143);
/* oklch */ color: oklch(35.2% 0.178 288.9);
Tailwind
colors: {
  custom: {
    50: '#7e5ab1',
    500: '#3f168f',
    950: '#000000',
  },
}
SCSS
$custom: #3f168f;
$custom-light: #7e5ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f168f",
  "rgb": {
    "r": 63,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 260.331,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35234,
    "c": 0.17773,
    "h": 288.9
  },
  "luminance": 0.03614
}

Semantic roles & 50–950 ramp

primary
#3F168F
secondary
#95C13F
accent
#F038B2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F168F

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

Preview Lab → · Contrast checker → · Palette generator →

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