#3F175C#3F175C

#3F175C is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.5% C 0.119 H 307.2°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#3F175C
RGBrgb(63, 23, 92)
HSLhsl(275, 60%, 23%)
HSVhsv(275, 75%, 36%)
CMYKcmyk(31.5%, 75%, 0%, 63.9%)
CIE-LABlab(17.66, 32.92, -33.30)
CIE-LCHlch(17.66, 46.83, 314.67°)
OKLaboklab(30.47% 0.0718 -0.0945)
OKLCHoklch(30.47% 0.119 307.2)
XYZxyz(4.2877, 2.4423, 10.3687)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F175C #345C17
analogous
#1D175C #3F175C #5C1756
triadic
#3F175C #5C3F17 #175C3F
tetradic
#3F175C #5C1D17 #345C17 #17565C
square
#3F175C #5C1D17 #345C17 #17565C
split-complementary
#3F175C #565C17 #175C1D
monochromatic
#110618 #1D0B2B #3F175C #61238D #822FBE

Accessibility & contrast

On white

14.11
#3F175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#3F175C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F175C
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F175C#FFFFFF#000000##FFFFFF
##3F175C1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5E
Deuteranopia (green-blind)
#042C5B
Tritanopia (blue-blind)
#3A2737
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3f175c;
/* rgb */ color: rgb(63, 23, 92);
/* oklch */ color: oklch(30.5% 0.119 307.2);
Tailwind
colors: {
  custom: {
    50: '#77588b',
    500: '#3f175c',
    950: '#000000',
  },
}
SCSS
$custom: #3f175c;
$custom-light: #77588b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f175c",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 274.783,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30469,
    "c": 0.11863,
    "h": 307.2
  },
  "luminance": 0.02442
}

Semantic roles & 50–950 ramp

primary
#3F175C
secondary
#60933C
accent
#E34587
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F175C

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

Preview Lab → · Contrast checker → · Palette generator →

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