#3F168D#3F168D

#3F168D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.176 H 289.4°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#3F168D
RGBrgb(63, 22, 141)
HSLhsl(261, 73%, 32%)
HSVhsv(261, 84%, 55%)
CMYKcmyk(55.3%, 84.4%, 0%, 44.7%)
CIE-LABlab(22.14, 46.62, -57.53)
CIE-LCHlch(22.14, 74.05, 309.02°)
OKLaboklab(35.02% 0.0584 -0.1655)
OKLCHoklch(35.02% 0.176 289.4)
XYZxyz(7.1431, 3.5533, 25.5036)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F168D #648D16
analogous
#16298D #3F168D #7B168D
triadic
#3F168D #8D3F16 #168D3F
tetradic
#3F168D #8D1629 #648D16 #168D7B
square
#3F168D #8D1629 #648D16 #168D7B
split-complementary
#3F168D #8D7B16 #298D16
monochromatic
#100523 #270E58 #3F168D #571EC2 #753DE1

Accessibility & contrast

On white

12.27
#3F168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3F168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F168D
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F168D#FFFFFF#000000##FFFFFF
##3F168D1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#203A53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f168d;
/* rgb */ color: rgb(63, 22, 141);
/* oklch */ color: oklch(35.0% 0.176 289.4);
Tailwind
colors: {
  custom: {
    50: '#7e5aaf',
    500: '#3f168d',
    950: '#000000',
  },
}
SCSS
$custom: #3f168d;
$custom-light: #7e5aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#3f168d",
  "rgb": {
    "r": 63,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 260.672,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35023,
    "c": 0.17551,
    "h": 289.4
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

primary
#3F168D
secondary
#94C13E
accent
#F038B0
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F168D

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

Preview Lab → · Contrast checker → · Palette generator →

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