#3F176A#3F176A

#3F176A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.135 H 300.7°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#3F176A
RGBrgb(63, 23, 106)
HSLhsl(269, 64%, 25%)
HSVhsv(269, 78%, 42%)
CMYKcmyk(40.6%, 78.3%, 0%, 58.4%)
CIE-LABlab(18.84, 36.62, -40.62)
CIE-LCHlch(18.84, 54.69, 312.04°)
OKLaboklab(31.68% 0.0689 -0.1159)
OKLCHoklch(31.68% 0.135 300.7)
XYZxyz(4.9572, 2.7101, 13.8948)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F176A #426A17
analogous
#17186A #3F176A #68176A
triadic
#3F176A #6A3F17 #176A3F
tetradic
#3F176A #6A1718 #426A17 #176A68
square
#3F176A #6A1718 #426A17 #176A68
split-complementary
#3F176A #6A6817 #186A17
monochromatic
#0F0519 #210C38 #3F176A #5D229C #7B2DCF

Accessibility & contrast

On white

13.62
#3F176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3F176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F176A
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F176A#FFFFFF#000000##FFFFFF
##3F176A1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#002D68
Tritanopia (blue-blind)
#352C3F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3f176a;
/* rgb */ color: rgb(63, 23, 106);
/* oklch */ color: oklch(31.7% 0.135 300.7);
Tailwind
colors: {
  custom: {
    50: '#795895',
    500: '#3f176a',
    950: '#000000',
  },
}
SCSS
$custom: #3f176a;
$custom-light: #795895;
$custom-dark: #000000;
JSON
{
  "hex": "#3f176a",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 268.916,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31684,
    "c": 0.13488,
    "h": 300.7
  },
  "luminance": 0.0271
}

Semantic roles & 50–950 ramp

primary
#3F176A
secondary
#70A03D
accent
#E74097
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3F176A

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

Preview Lab → · Contrast checker → · Palette generator →

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