#3F176F#3F176F

#3F176F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.141 H 298.7°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#3F176F
RGBrgb(63, 23, 111)
HSLhsl(267, 66%, 26%)
HSVhsv(267, 79%, 44%)
CMYKcmyk(43.2%, 79.3%, 0%, 56.5%)
CIE-LABlab(19.30, 37.97, -43.13)
CIE-LCHlch(19.30, 57.47, 311.36°)
OKLaboklab(32.14% 0.0676 -0.1233)
OKLCHoklch(32.14% 0.141 298.7)
XYZxyz(5.2248, 2.8172, 15.3043)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F176F #476F17
analogous
#171B6F #3F176F #6B176F
triadic
#3F176F #6F3F17 #176F3F
tetradic
#3F176F #6F171B #476F17 #176F6B
square
#3F176F #6F171B #476F17 #176F6B
split-complementary
#3F176F #6F6B17 #1B6F17
monochromatic
#0E0519 #220C3C #3F176F #5C22A2 #792DD3

Accessibility & contrast

On white

13.43
#3F176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3F176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F176F
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F176F#FFFFFF#000000##FFFFFF
##3F176F1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#332E42
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3f176f;
/* rgb */ color: rgb(63, 23, 111);
/* oklch */ color: oklch(32.1% 0.141 298.7);
Tailwind
colors: {
  custom: {
    50: '#795999',
    500: '#3f176f',
    950: '#000000',
  },
}
SCSS
$custom: #3f176f;
$custom-light: #795999;
$custom-dark: #000000;
JSON
{
  "hex": "#3f176f",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 267.273,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32143,
    "c": 0.14066,
    "h": 298.7
  },
  "luminance": 0.02817
}

Semantic roles & 50–950 ramp

primary
#3F176F
secondary
#76A53D
accent
#E93F9C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F176F

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

Preview Lab → · Contrast checker → · Palette generator →

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