#3F178D#3F178D

#3F178D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.175 H 289.3°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#3F178D
RGBrgb(63, 23, 141)
HSLhsl(260, 72%, 32%)
HSVhsv(260, 84%, 55%)
CMYKcmyk(55.3%, 83.7%, 0%, 44.7%)
CIE-LABlab(22.27, 46.22, -57.30)
CIE-LCHlch(22.27, 73.62, 308.89°)
OKLaboklab(35.12% 0.0578 -0.1648)
OKLCHoklch(35.12% 0.175 289.3)
XYZxyz(7.1626, 3.5923, 25.5101)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F178D #658D17
analogous
#172A8D #3F178D #7A178D
triadic
#3F178D #8D3F17 #178D3F
tetradic
#3F178D #8D172A #658D17 #178D7A
square
#3F178D #8D172A #658D17 #178D7A
split-complementary
#3F178D #8D7A17 #2A8D17
monochromatic
#100624 #270E58 #3F178D #5720C2 #753FE0

Accessibility & contrast

On white

12.22
#3F178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3F178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F178D
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F178D#FFFFFF#000000##FFFFFF
##3F178D1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#203B53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f178d;
/* rgb */ color: rgb(63, 23, 141);
/* oklch */ color: oklch(35.1% 0.175 289.3);
Tailwind
colors: {
  custom: {
    50: '#7e5baf',
    500: '#3f178d',
    950: '#000000',
  },
}
SCSS
$custom: #3f178d;
$custom-light: #7e5baf;
$custom-dark: #000000;
JSON
{
  "hex": "#3f178d",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 260.339,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35119,
    "c": 0.17468,
    "h": 289.3
  },
  "luminance": 0.03593
}

Semantic roles & 50–950 ramp

primary
#3F178D
secondary
#95C040
accent
#EF39B1
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F178D

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

Preview Lab → · Contrast checker → · Palette generator →

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