#3F165D#3F165D

#3F165D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.121 H 306.9°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#3F165D
RGBrgb(63, 22, 93)
HSLhsl(275, 62%, 23%)
HSVhsv(275, 76%, 36%)
CMYKcmyk(32.3%, 76.3%, 0%, 63.5%)
CIE-LABlab(17.56, 33.69, -34.13)
CIE-LCHlch(17.56, 47.96, 314.63°)
OKLaboklab(30.43% 0.0728 -0.0969)
OKLCHoklch(30.43% 0.121 306.9)
XYZxyz(4.3122, 2.4209, 10.5939)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F165D #345D16
analogous
#1C165D #3F165D #5D1657
triadic
#3F165D #5D3F16 #165D3F
tetradic
#3F165D #5D1C16 #345D16 #16575D
square
#3F165D #5D1C16 #345D16 #16575D
split-complementary
#3F165D #575D16 #165D1C
monochromatic
#110619 #1D0A2C #3F165D #61228E #822DC0

Accessibility & contrast

On white

14.15
#3F165D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F165D
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F165D#FFFFFF#000000##FFFFFF
##3F165D1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5F
Deuteranopia (green-blind)
#012B5B
Tritanopia (blue-blind)
#3A2638
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3f165d;
/* rgb */ color: rgb(63, 22, 93);
/* oklch */ color: oklch(30.4% 0.121 306.9);
Tailwind
colors: {
  custom: {
    50: '#77578b',
    500: '#3f165d',
    950: '#000000',
  },
}
SCSS
$custom: #3f165d;
$custom-light: #77578b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f165d",
  "rgb": {
    "r": 63,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 274.648,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30425,
    "c": 0.12117,
    "h": 306.9
  },
  "luminance": 0.02421
}

Semantic roles & 50–950 ramp

primary
#3F165D
secondary
#60943B
accent
#E54387
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F165D

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

Preview Lab → · Contrast checker → · Palette generator →

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