#3F175A#3F175A

#3F175A is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.3% C 0.116 H 308.3°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#3F175A
RGBrgb(63, 23, 90)
HSLhsl(276, 59%, 22%)
HSVhsv(276, 74%, 35%)
CMYKcmyk(30%, 74.4%, 0%, 64.7%)
CIE-LABlab(17.50, 32.41, -32.22)
CIE-LCHlch(17.50, 45.70, 315.16°)
OKLaboklab(30.31% 0.0721 -0.0913)
OKLCHoklch(30.31% 0.116 308.3)
XYZxyz(4.2014, 2.4078, 9.9143)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F175A #325A17
analogous
#1E175A #3F175A #5A1754
triadic
#3F175A #5A3F17 #175A3F
tetradic
#3F175A #5A1E17 #325A17 #17545A
square
#3F175A #5A1E17 #325A17 #17545A
split-complementary
#3F175A #545A17 #175A1E
monochromatic
#110618 #1D0B29 #3F175A #61238B #8330BB

Accessibility & contrast

On white

14.17
#3F175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#3F175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F175A
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F175A#FFFFFF#000000##FFFFFF
##3F175A1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295C
Deuteranopia (green-blind)
#082B59
Tritanopia (blue-blind)
#3B2636
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3f175a;
/* rgb */ color: rgb(63, 23, 90);
/* oklch */ color: oklch(30.3% 0.116 308.3);
Tailwind
colors: {
  custom: {
    50: '#775889',
    500: '#3f175a',
    950: '#000000',
  },
}
SCSS
$custom: #3f175a;
$custom-light: #775889;
$custom-dark: #000000;
JSON
{
  "hex": "#3f175a",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 275.821,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30305,
    "c": 0.11629,
    "h": 308.3
  },
  "luminance": 0.02408
}

Semantic roles & 50–950 ramp

primary
#3F175A
secondary
#5E913C
accent
#E24585
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3F175A

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

Preview Lab → · Contrast checker → · Palette generator →

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