#3F175F#3F175F

#3F175F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.122 H 305.7°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#3F175F
RGBrgb(63, 23, 95)
HSLhsl(273, 61%, 23%)
HSVhsv(273, 76%, 37%)
CMYKcmyk(33.7%, 75.8%, 0%, 62.7%)
CIE-LABlab(17.90, 33.70, -34.91)
CIE-LCHlch(17.90, 48.52, 314.00°)
OKLaboklab(30.72% 0.0713 -0.0992)
OKLCHoklch(30.72% 0.122 305.7)
XYZxyz(4.4214, 2.4958, 11.0731)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F175F #375F17
analogous
#1B175F #3F175F #5F175B
triadic
#3F175F #5F3F17 #175F3F
tetradic
#3F175F #5F1B17 #375F17 #175B5F
square
#3F175F #5F1B17 #375F17 #175B5F
split-complementary
#3F175F #5B5F17 #175F1B
monochromatic
#100619 #1E0B2E #3F175F #602390 #802FC2

Accessibility & contrast

On white

14.01
#3F175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#3F175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F175F
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F175F#FFFFFF#000000##FFFFFF
##3F175F1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B61
Deuteranopia (green-blind)
#002C5D
Tritanopia (blue-blind)
#392839
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3f175f;
/* rgb */ color: rgb(63, 23, 95);
/* oklch */ color: oklch(30.7% 0.122 305.7);
Tailwind
colors: {
  custom: {
    50: '#78588d',
    500: '#3f175f',
    950: '#000000',
  },
}
SCSS
$custom: #3f175f;
$custom-light: #78588d;
$custom-dark: #000000;
JSON
{
  "hex": "#3f175f",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 273.333,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.3072,
    "c": 0.12212,
    "h": 305.7
  },
  "luminance": 0.02496
}

Semantic roles & 50–950 ramp

primary
#3F175F
secondary
#64963C
accent
#E4448B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F175F

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

Preview Lab → · Contrast checker → · Palette generator →

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