#3F167A#3F167A

#3F167A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.154 H 295.0°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#3F167A
RGBrgb(63, 22, 122)
HSLhsl(265, 69%, 28%)
HSVhsv(265, 82%, 48%)
CMYKcmyk(48.4%, 82%, 0%, 52.2%)
CIE-LABlab(20.19, 41.42, -48.75)
CIE-LCHlch(20.19, 63.98, 310.35°)
OKLaboklab(33.09% 0.0651 -0.1398)
OKLCHoklch(33.09% 0.154 295)
XYZxyz(5.8487, 3.0356, 18.6863)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F167A #517A16
analogous
#161F7A #3F167A #71167A
triadic
#3F167A #7A3F16 #167A3F
tetradic
#3F167A #7A161F #517A16 #167A71
square
#3F167A #7A161F #517A16 #167A71
split-complementary
#3F167A #7A7116 #1F7A16
monochromatic
#0D051A #240D46 #3F167A #5A1FAE #7631DA

Accessibility & contrast

On white

13.07
#3F167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3F167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F167A
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F167A#FFFFFF#000000##FFFFFF
##3F167A1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#2E3248
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3f167a;
/* rgb */ color: rgb(63, 22, 122);
/* oklch */ color: oklch(33.1% 0.154 295.0);
Tailwind
colors: {
  custom: {
    50: '#7b59a1',
    500: '#3f167a',
    950: '#000000',
  },
}
SCSS
$custom: #3f167a;
$custom-light: #7b59a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f167a",
  "rgb": {
    "r": 63,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 264.6,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33086,
    "c": 0.15425,
    "h": 295
  },
  "luminance": 0.03036
}

Semantic roles & 50–950 ramp

primary
#3F167A
secondary
#80AF3D
accent
#EC3CA4
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F167A

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

Preview Lab → · Contrast checker → · Palette generator →

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