#3F165B#3F165B

#3F165B is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.3% C 0.119 H 308.0°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#3F165B
RGBrgb(63, 22, 91)
HSLhsl(276, 61%, 22%)
HSVhsv(276, 76%, 36%)
CMYKcmyk(30.8%, 75.8%, 0%, 64.3%)
CIE-LABlab(17.39, 33.17, -33.06)
CIE-LCHlch(17.39, 46.83, 315.10°)
OKLaboklab(30.26% 0.0731 -0.0937)
OKLCHoklch(30.26% 0.119 308)
XYZxyz(4.2247, 2.3860, 10.1335)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F165B #325B16
analogous
#1C165B #3F165B #5B1655
triadic
#3F165B #5B3F16 #165B3F
tetradic
#3F165B #5B1C16 #325B16 #16555B
square
#3F165B #5B1C16 #325B16 #16555B
split-complementary
#3F165B #555B16 #165B1C
monochromatic
#110619 #1D0A2A #3F165B #61228C #832EBE

Accessibility & contrast

On white

14.22
#3F165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#3F165B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F165B
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F165B#FFFFFF#000000##FFFFFF
##3F165B1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#042B5A
Tritanopia (blue-blind)
#3B2637
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3f165b;
/* rgb */ color: rgb(63, 22, 91);
/* oklch */ color: oklch(30.3% 0.119 308.0);
Tailwind
colors: {
  custom: {
    50: '#77578a',
    500: '#3f165b',
    950: '#000000',
  },
}
SCSS
$custom: #3f165b;
$custom-light: #77578a;
$custom-dark: #000000;
JSON
{
  "hex": "#3f165b",
  "rgb": {
    "r": 63,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 275.652,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30258,
    "c": 0.11887,
    "h": 308
  },
  "luminance": 0.02386
}

Semantic roles & 50–950 ramp

primary
#3F165B
secondary
#5E923B
accent
#E44485
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F165B

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

Preview Lab → · Contrast checker → · Palette generator →

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