#3F177F#3F177F

#3F177F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.159 H 293.2°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#3F177F
RGBrgb(63, 23, 127)
HSLhsl(263, 69%, 29%)
HSVhsv(263, 82%, 50%)
CMYKcmyk(50.4%, 81.9%, 0%, 50.2%)
CIE-LABlab(20.83, 42.35, -50.87)
CIE-LCHlch(20.83, 66.20, 309.78°)
OKLaboklab(33.69% 0.0627 -0.146)
OKLCHoklch(33.69% 0.159 293.2)
XYZxyz(6.1860, 3.2017, 20.3666)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F177F #577F17
analogous
#17237F #3F177F #73177F
triadic
#3F177F #7F3F17 #177F3F
tetradic
#3F177F #7F1723 #577F17 #177F73
square
#3F177F #7F1723 #577F17 #177F73
split-complementary
#3F177F #7F7317 #237F17
monochromatic
#0D051A #250E4B #3F177F #5920B3 #7536DB

Accessibility & contrast

On white

12.80
#3F177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3F177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F177F
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F177F#FFFFFF#000000##FFFFFF
##3F177F1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#2B354B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f177f;
/* rgb */ color: rgb(63, 23, 127);
/* oklch */ color: oklch(33.7% 0.159 293.2);
Tailwind
colors: {
  custom: {
    50: '#7c5aa5',
    500: '#3f177f',
    950: '#000000',
  },
}
SCSS
$custom: #3f177f;
$custom-light: #7c5aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f177f",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 263.077,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33687,
    "c": 0.15893,
    "h": 293.2
  },
  "luminance": 0.03202
}

Semantic roles & 50–950 ramp

primary
#3F177F
secondary
#86B43E
accent
#EC3CA8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F177F

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

Preview Lab → · Contrast checker → · Palette generator →

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