#3F168E#3F168E

#3F168E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.177 H 289.2°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#3F168E
RGBrgb(63, 22, 142)
HSLhsl(261, 73%, 32%)
HSVhsv(261, 85%, 56%)
CMYKcmyk(55.6%, 84.5%, 0%, 44.3%)
CIE-LABlab(22.24, 46.90, -57.98)
CIE-LCHlch(22.24, 74.57, 308.97°)
OKLaboklab(35.13% 0.058 -0.1668)
OKLCHoklch(35.13% 0.177 289.2)
XYZxyz(7.2179, 3.5832, 25.8972)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F168E #658E16
analogous
#16298E #3F168E #7B168E
triadic
#3F168E #8E3F16 #168E3F
tetradic
#3F168E #8E1629 #658E16 #168E7B
square
#3F168E #8E1629 #658E16 #168E7B
split-complementary
#3F168E #8E7B16 #298E16
monochromatic
#100624 #270E59 #3F168E #571EC3 #753DE1

Accessibility & contrast

On white

12.23
#3F168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F168E
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F168E#FFFFFF#000000##FFFFFF
##3F168E1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#1F3B54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f168e;
/* rgb */ color: rgb(63, 22, 142);
/* oklch */ color: oklch(35.1% 0.177 289.2);
Tailwind
colors: {
  custom: {
    50: '#7e5ab0',
    500: '#3f168e',
    950: '#000000',
  },
}
SCSS
$custom: #3f168e;
$custom-light: #7e5ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f168e",
  "rgb": {
    "r": 63,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 260.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35128,
    "c": 0.17661,
    "h": 289.2
  },
  "luminance": 0.03584
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3F168E

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

Preview Lab → · Contrast checker → · Palette generator →

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