#3F176E#3F176E

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

Color values

HEX#3F176E
RGBrgb(63, 23, 110)
HSLhsl(268, 65%, 26%)
HSVhsv(268, 79%, 43%)
CMYKcmyk(42.7%, 79.1%, 0%, 56.9%)
CIE-LABlab(19.20, 37.70, -42.63)
CIE-LCHlch(19.20, 56.91, 311.49°)
OKLaboklab(32.05% 0.0679 -0.1219)
OKLCHoklch(32.05% 0.14 299.1)
XYZxyz(5.1701, 2.7953, 15.0160)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F176E #466E17
analogous
#171A6E #3F176E #6A176E
triadic
#3F176E #6E3F17 #176E3F
tetradic
#3F176E #6E171A #466E17 #176E6A
square
#3F176E #6E171A #466E17 #176E6A
split-complementary
#3F176E #6E6A17 #1A6E17
monochromatic
#0E0519 #220C3B #3F176E #5C22A1 #792CD3

Accessibility & contrast

On white

13.47
#3F176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3F176E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F176E
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F176E#FFFFFF#000000##FFFFFF
##3F176E1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#002E6C
Tritanopia (blue-blind)
#342E41
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3f176e;
/* rgb */ color: rgb(63, 23, 110);
/* oklch */ color: oklch(32.0% 0.140 299.1);
Tailwind
colors: {
  custom: {
    50: '#795998',
    500: '#3f176e',
    950: '#000000',
  },
}
SCSS
$custom: #3f176e;
$custom-light: #795998;
$custom-dark: #000000;
JSON
{
  "hex": "#3f176e",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 267.586,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.3205,
    "c": 0.1395,
    "h": 299.1
  },
  "luminance": 0.02795
}

Semantic roles & 50–950 ramp

primary
#3F176E
secondary
#75A43D
accent
#E83F9B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F176E

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

Preview Lab → · Contrast checker → · Palette generator →

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