#3F177D#3F177D

#3F177D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.157 H 293.9°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#3F177D
RGBrgb(63, 23, 125)
HSLhsl(264, 69%, 29%)
HSVhsv(264, 82%, 49%)
CMYKcmyk(49.6%, 81.6%, 0%, 51%)
CIE-LABlab(20.63, 41.80, -49.93)
CIE-LCHlch(20.63, 65.12, 309.94°)
OKLaboklab(33.49% 0.0634 -0.1433)
OKLCHoklch(33.49% 0.157 293.9)
XYZxyz(6.0569, 3.1500, 19.6869)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F177D #557D17
analogous
#17227D #3F177D #72177D
triadic
#3F177D #7D3F17 #177D3F
tetradic
#3F177D #7D1722 #557D17 #177D72
square
#3F177D #7D1722 #557D17 #177D72
split-complementary
#3F177D #7D7217 #227D17
monochromatic
#0D051A #250D49 #3F177D #5921B1 #7535DA

Accessibility & contrast

On white

12.88
#3F177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3F177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F177D
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F177D#FFFFFF#000000##FFFFFF
##3F177D1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#2C344A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f177d;
/* rgb */ color: rgb(63, 23, 125);
/* oklch */ color: oklch(33.5% 0.157 293.9);
Tailwind
colors: {
  custom: {
    50: '#7b5aa4',
    500: '#3f177d',
    950: '#000000',
  },
}
SCSS
$custom: #3f177d;
$custom-light: #7b5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f177d",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 263.529,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33488,
    "c": 0.15666,
    "h": 293.9
  },
  "luminance": 0.0315
}

Semantic roles & 50–950 ramp

primary
#3F177D
secondary
#84B23E
accent
#EC3CA7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F177D

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

Preview Lab → · Contrast checker → · Palette generator →

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