#3F167B#3F167B

#3F167B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.155 H 294.7°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#3F167B
RGBrgb(63, 22, 123)
HSLhsl(264, 70%, 28%)
HSVhsv(264, 82%, 48%)
CMYKcmyk(48.8%, 82.1%, 0%, 51.8%)
CIE-LABlab(20.28, 41.70, -49.23)
CIE-LCHlch(20.28, 64.52, 310.26°)
OKLaboklab(33.18% 0.0648 -0.1412)
OKLCHoklch(33.18% 0.155 294.7)
XYZxyz(5.9110, 3.0605, 19.0143)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F167B #527B16
analogous
#16207B #3F167B #71167B
triadic
#3F167B #7B3F16 #167B3F
tetradic
#3F167B #7B1620 #527B16 #167B71
square
#3F167B #7B1620 #527B16 #167B71
split-complementary
#3F167B #7B7116 #207B16
monochromatic
#0D051A #240D47 #3F167B #5A1FAF #7631DA

Accessibility & contrast

On white

13.03
#3F167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F167B
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F167B#FFFFFF#000000##FFFFFF
##3F167B1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#2D3349
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3f167b;
/* rgb */ color: rgb(63, 22, 123);
/* oklch */ color: oklch(33.2% 0.155 294.7);
Tailwind
colors: {
  custom: {
    50: '#7b59a2',
    500: '#3f167b',
    950: '#000000',
  },
}
SCSS
$custom: #3f167b;
$custom-light: #7b59a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f167b",
  "rgb": {
    "r": 63,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 264.356,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33184,
    "c": 0.15538,
    "h": 294.7
  },
  "luminance": 0.03061
}

Semantic roles & 50–950 ramp

primary
#3F167B
secondary
#81B03D
accent
#EC3BA5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F167B

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

Preview Lab → · Contrast checker → · Palette generator →

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