#3F177B#3F177B

#3F177B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.154 H 294.5°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#3F177B
RGBrgb(63, 23, 123)
HSLhsl(264, 68%, 29%)
HSVhsv(264, 81%, 48%)
CMYKcmyk(48.8%, 81.3%, 0%, 51.8%)
CIE-LABlab(20.44, 41.26, -48.98)
CIE-LCHlch(20.44, 64.04, 310.11°)
OKLaboklab(33.29% 0.064 -0.1405)
OKLCHoklch(33.29% 0.154 294.5)
XYZxyz(5.9305, 3.0994, 19.0208)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F177B #537B17
analogous
#17217B #3F177B #71177B
triadic
#3F177B #7B3F17 #177B3F
tetradic
#3F177B #7B1721 #537B17 #177B71
square
#3F177B #7B1721 #537B17 #177B71
split-complementary
#3F177B #7B7117 #217B17
monochromatic
#0D051A #250D47 #3F177B #5921AF #7633D9

Accessibility & contrast

On white

12.96
#3F177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F177B
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F177B#FFFFFF#000000##FFFFFF
##3F177B1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#2D3349
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3f177b;
/* rgb */ color: rgb(63, 23, 123);
/* oklch */ color: oklch(33.3% 0.154 294.5);
Tailwind
colors: {
  custom: {
    50: '#7b59a2',
    500: '#3f177b',
    950: '#000000',
  },
}
SCSS
$custom: #3f177b;
$custom-light: #7b59a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f177b",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 264,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33291,
    "c": 0.15438,
    "h": 294.5
  },
  "luminance": 0.031
}

Semantic roles & 50–950 ramp

primary
#3F177B
secondary
#82B03E
accent
#EB3CA5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F177B

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

Preview Lab → · Contrast checker → · Palette generator →

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