#3F176D#3F176D

#3F176D is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.138 H 299.5°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#3F176D
RGBrgb(63, 23, 109)
HSLhsl(268, 65%, 26%)
HSVhsv(268, 79%, 43%)
CMYKcmyk(42.2%, 78.9%, 0%, 57.3%)
CIE-LABlab(19.11, 37.43, -42.13)
CIE-LCHlch(19.11, 56.36, 311.62°)
OKLaboklab(31.96% 0.0682 -0.1204)
OKLCHoklch(31.96% 0.138 299.5)
XYZxyz(5.1159, 2.7736, 14.7309)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F176D #456D17
analogous
#171A6D #3F176D #6A176D
triadic
#3F176D #6D3F17 #176D3F
tetradic
#3F176D #6D171A #456D17 #176D6A
square
#3F176D #6D171A #456D17 #176D6A
split-complementary
#3F176D #6D6A17 #1A6D17
monochromatic
#0F0519 #220C3A #3F176D #5C22A0 #792CD2

Accessibility & contrast

On white

13.51
#3F176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3F176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F176D
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F176D#FFFFFF#000000##FFFFFF
##3F176D1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6F
Deuteranopia (green-blind)
#002E6B
Tritanopia (blue-blind)
#342D41
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3f176d;
/* rgb */ color: rgb(63, 23, 109);
/* oklch */ color: oklch(32.0% 0.138 299.5);
Tailwind
colors: {
  custom: {
    50: '#795998',
    500: '#3f176d',
    950: '#000000',
  },
}
SCSS
$custom: #3f176d;
$custom-light: #795998;
$custom-dark: #000000;
JSON
{
  "hex": "#3f176d",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 267.907,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31957,
    "c": 0.13835,
    "h": 299.5
  },
  "luminance": 0.02774
}

Semantic roles & 50–950 ramp

primary
#3F176D
secondary
#73A33D
accent
#E8409A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F176D

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

Preview Lab → · Contrast checker → · Palette generator →

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