#3F165A#3F165A

#3F165A is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.2% C 0.118 H 308.5°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#3F165A
RGBrgb(63, 22, 90)
HSLhsl(276, 61%, 22%)
HSVhsv(276, 76%, 35%)
CMYKcmyk(30%, 75.6%, 0%, 64.7%)
CIE-LABlab(17.31, 32.92, -32.52)
CIE-LCHlch(17.31, 46.27, 315.35°)
OKLaboklab(30.18% 0.0733 -0.0921)
OKLCHoklch(30.18% 0.118 308.5)
XYZxyz(4.1819, 2.3688, 9.9078)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F165A #315A16
analogous
#1D165A #3F165A #5A1653
triadic
#3F165A #5A3F16 #165A3F
tetradic
#3F165A #5A1D16 #315A16 #16535A
square
#3F165A #5A1D16 #315A16 #16535A
split-complementary
#3F165A #535A16 #165A1D
monochromatic
#110619 #1D0A29 #3F165A #61228B #842EBC

Accessibility & contrast

On white

14.25
#3F165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3F165A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F165A
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F165A#FFFFFF#000000##FFFFFF
##3F165A1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295C
Deuteranopia (green-blind)
#062B59
Tritanopia (blue-blind)
#3B2536
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3f165a;
/* rgb */ color: rgb(63, 22, 90);
/* oklch */ color: oklch(30.2% 0.118 308.5);
Tailwind
colors: {
  custom: {
    50: '#775789',
    500: '#3f165a',
    950: '#000000',
  },
}
SCSS
$custom: #3f165a;
$custom-light: #775789;
$custom-dark: #000000;
JSON
{
  "hex": "#3f165a",
  "rgb": {
    "r": 63,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 276.176,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.30176,
    "c": 0.11771,
    "h": 308.5
  },
  "luminance": 0.02369
}

Semantic roles & 50–950 ramp

primary
#3F165A
secondary
#5D913B
accent
#E44483
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3F165A

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

Preview Lab → · Contrast checker → · Palette generator →

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