#3F165C#3F165C

#3F165C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.120 H 307.4°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#3F165C
RGBrgb(63, 22, 92)
HSLhsl(275, 61%, 22%)
HSVhsv(275, 76%, 36%)
CMYKcmyk(31.5%, 76.1%, 0%, 63.9%)
CIE-LABlab(17.48, 33.43, -33.60)
CIE-LCHlch(17.48, 47.39, 314.86°)
OKLaboklab(30.34% 0.0729 -0.0953)
OKLCHoklch(30.34% 0.12 307.4)
XYZxyz(4.2682, 2.4033, 10.3622)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F165C #335C16
analogous
#1C165C #3F165C #5C1656
triadic
#3F165C #5C3F16 #165C3F
tetradic
#3F165C #5C1C16 #335C16 #16565C
square
#3F165C #5C1C16 #335C16 #16565C
split-complementary
#3F165C #565C16 #165C1C
monochromatic
#110619 #1D0A2B #3F165C #61228D #832EBF

Accessibility & contrast

On white

14.18
#3F165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F165C
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F165C#FFFFFF#000000##FFFFFF
##3F165C1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#032B5B
Tritanopia (blue-blind)
#3A2637
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3f165c;
/* rgb */ color: rgb(63, 22, 92);
/* oklch */ color: oklch(30.3% 0.120 307.4);
Tailwind
colors: {
  custom: {
    50: '#77578b',
    500: '#3f165c',
    950: '#000000',
  },
}
SCSS
$custom: #3f165c;
$custom-light: #77578b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f165c",
  "rgb": {
    "r": 63,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 275.143,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.30341,
    "c": 0.12001,
    "h": 307.4
  },
  "luminance": 0.02403
}

Semantic roles & 50–950 ramp

primary
#3F165C
secondary
#5F933B
accent
#E54386
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F165C

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

Preview Lab → · Contrast checker → · Palette generator →

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