#3F178F#3F178F

#3F178F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.177 H 288.8°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#3F178F
RGBrgb(63, 23, 143)
HSLhsl(260, 72%, 33%)
HSVhsv(260, 84%, 56%)
CMYKcmyk(55.9%, 83.9%, 0%, 43.9%)
CIE-LABlab(22.49, 46.77, -58.20)
CIE-LCHlch(22.49, 74.66, 308.78°)
OKLaboklab(35.33% 0.057 -0.1675)
OKLCHoklch(35.33% 0.177 288.8)
XYZxyz(7.3128, 3.6524, 26.3009)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F178F #678F17
analogous
#172B8F #3F178F #7B178F
triadic
#3F178F #8F3F17 #178F3F
tetradic
#3F178F #8F172B #678F17 #178F7B
square
#3F178F #8F172B #678F17 #178F7B
split-complementary
#3F178F #8F7B17 #2B8F17
monochromatic
#110626 #280F5A #3F178F #561FC4 #7640E0

Accessibility & contrast

On white

12.13
#3F178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3F178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F178F
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F178F#FFFFFF#000000##FFFFFF
##3F178F1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#1E3C54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f178f;
/* rgb */ color: rgb(63, 23, 143);
/* oklch */ color: oklch(35.3% 0.177 288.8);
Tailwind
colors: {
  custom: {
    50: '#7e5bb1',
    500: '#3f178f',
    950: '#000000',
  },
}
SCSS
$custom: #3f178f;
$custom-light: #7e5bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f178f",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 260,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35328,
    "c": 0.17692,
    "h": 288.8
  },
  "luminance": 0.03653
}

Semantic roles & 50–950 ramp

primary
#3F178F
secondary
#96C141
accent
#EF39B2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F178F

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

Preview Lab → · Contrast checker → · Palette generator →

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