#3F177A#3F177A

#3F177A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.153 H 294.8°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#3F177A
RGBrgb(63, 23, 122)
HSLhsl(264, 68%, 28%)
HSVhsv(264, 81%, 48%)
CMYKcmyk(48.4%, 81.1%, 0%, 52.2%)
CIE-LABlab(20.34, 40.98, -48.50)
CIE-LCHlch(20.34, 63.50, 310.20°)
OKLaboklab(33.19% 0.0643 -0.1391)
OKLCHoklch(33.19% 0.153 294.8)
XYZxyz(5.8682, 3.0745, 18.6928)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F177A #527A17
analogous
#17217A #3F177A #70177A
triadic
#3F177A #7A3F17 #177A3F
tetradic
#3F177A #7A1721 #527A17 #177A70
square
#3F177A #7A1721 #527A17 #177A70
split-complementary
#3F177A #7A7017 #217A17
monochromatic
#0D051A #240D47 #3F177A #5A21AD #7633D9

Accessibility & contrast

On white

13.00
#3F177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3F177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F177A
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F177A#FFFFFF#000000##FFFFFF
##3F177A1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#2E3348
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3f177a;
/* rgb */ color: rgb(63, 23, 122);
/* oklch */ color: oklch(33.2% 0.153 294.8);
Tailwind
colors: {
  custom: {
    50: '#7b59a1',
    500: '#3f177a',
    950: '#000000',
  },
}
SCSS
$custom: #3f177a;
$custom-light: #7b59a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f177a",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 264.242,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33193,
    "c": 0.15325,
    "h": 294.8
  },
  "luminance": 0.03075
}

Semantic roles & 50–950 ramp

primary
#3F177A
secondary
#81AF3E
accent
#EB3DA5
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F177A

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

Preview Lab → · Contrast checker → · Palette generator →

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