#3F176C#3F176C

#3F176C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.137 H 299.9°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#3F176C
RGBrgb(63, 23, 108)
HSLhsl(268, 65%, 26%)
HSVhsv(268, 79%, 42%)
CMYKcmyk(41.7%, 78.7%, 0%, 57.6%)
CIE-LABlab(19.02, 37.16, -41.63)
CIE-LCHlch(19.02, 55.80, 311.76°)
OKLaboklab(31.87% 0.0684 -0.1189)
OKLCHoklch(31.87% 0.137 299.9)
XYZxyz(5.0624, 2.7522, 14.4490)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F176C #446C17
analogous
#171A6C #3F176C #69176C
triadic
#3F176C #6C3F17 #176C3F
tetradic
#3F176C #6C171A #446C17 #176C69
square
#3F176C #6C171A #446C17 #176C69
split-complementary
#3F176C #6C6917 #1A6C17
monochromatic
#0F0519 #220C3A #3F176C #5C229E #7A2CD1

Accessibility & contrast

On white

13.54
#3F176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F176C
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F176C#FFFFFF#000000##FFFFFF
##3F176C1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6E
Deuteranopia (green-blind)
#002E6A
Tritanopia (blue-blind)
#342D40
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3f176c;
/* rgb */ color: rgb(63, 23, 108);
/* oklch */ color: oklch(31.9% 0.137 299.9);
Tailwind
colors: {
  custom: {
    50: '#795997',
    500: '#3f176c',
    950: '#000000',
  },
}
SCSS
$custom: #3f176c;
$custom-light: #795997;
$custom-dark: #000000;
JSON
{
  "hex": "#3f176c",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 268.235,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31866,
    "c": 0.13719,
    "h": 299.9
  },
  "luminance": 0.02752
}

Semantic roles & 50–950 ramp

primary
#3F176C
secondary
#72A23D
accent
#E84099
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3F176C

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

Preview Lab → · Contrast checker → · Palette generator →

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