#3F167E#3F167E

#3F167E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.159 H 293.7°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#3F167E
RGBrgb(63, 22, 126)
HSLhsl(264, 70%, 29%)
HSVhsv(264, 83%, 49%)
CMYKcmyk(50%, 82.5%, 0%, 50.6%)
CIE-LABlab(20.58, 42.52, -50.65)
CIE-LCHlch(20.58, 66.13, 310.01°)
OKLaboklab(33.48% 0.0638 -0.1454)
OKLCHoklch(33.48% 0.159 293.7)
XYZxyz(6.1017, 3.1367, 20.0186)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F167E #557E16
analogous
#16217E #3F167E #73167E
triadic
#3F167E #7E3F16 #167E3F
tetradic
#3F167E #7E1621 #557E16 #167E73
square
#3F167E #7E1621 #557E16 #167E73
split-complementary
#3F167E #7E7316 #217E16
monochromatic
#0D051A #250D4A #3F167E #591FB2 #7533DB

Accessibility & contrast

On white

12.90
#3F167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F167E
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F167E#FFFFFF#000000##FFFFFF
##3F167E1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#2B344A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f167e;
/* rgb */ color: rgb(63, 22, 126);
/* oklch */ color: oklch(33.5% 0.159 293.7);
Tailwind
colors: {
  custom: {
    50: '#7c59a4',
    500: '#3f167e',
    950: '#000000',
  },
}
SCSS
$custom: #3f167e;
$custom-light: #7c59a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f167e",
  "rgb": {
    "r": 63,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 263.654,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33483,
    "c": 0.15876,
    "h": 293.7
  },
  "luminance": 0.03137
}

Semantic roles & 50–950 ramp

primary
#3F167E
secondary
#84B33D
accent
#ED3BA7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F167E

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

Preview Lab → · Contrast checker → · Palette generator →

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