#3F175B#3F175B

#3F175B is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.4% C 0.117 H 307.8°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#3F175B
RGBrgb(63, 23, 91)
HSLhsl(275, 60%, 22%)
HSVhsv(275, 75%, 36%)
CMYKcmyk(30.8%, 74.7%, 0%, 64.3%)
CIE-LABlab(17.58, 32.67, -32.77)
CIE-LCHlch(17.58, 46.27, 314.91°)
OKLaboklab(30.39% 0.0719 -0.0929)
OKLCHoklch(30.39% 0.117 307.8)
XYZxyz(4.2442, 2.4249, 10.1400)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F175B #335B17
analogous
#1D175B #3F175B #5B1755
triadic
#3F175B #5B3F17 #175B3F
tetradic
#3F175B #5B1D17 #335B17 #17555B
square
#3F175B #5B1D17 #335B17 #17555B
split-complementary
#3F175B #555B17 #175B1D
monochromatic
#110618 #1D0B2A #3F175B #61238C #8330BD

Accessibility & contrast

On white

14.14
#3F175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F175B
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F175B#FFFFFF#000000##FFFFFF
##3F175B1.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5D
Deuteranopia (green-blind)
#062B5A
Tritanopia (blue-blind)
#3B2637
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3f175b;
/* rgb */ color: rgb(63, 23, 91);
/* oklch */ color: oklch(30.4% 0.117 307.8);
Tailwind
colors: {
  custom: {
    50: '#77588a',
    500: '#3f175b',
    950: '#000000',
  },
}
SCSS
$custom: #3f175b;
$custom-light: #77588a;
$custom-dark: #000000;
JSON
{
  "hex": "#3f175b",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 275.294,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.30387,
    "c": 0.11746,
    "h": 307.8
  },
  "luminance": 0.02425
}

Semantic roles & 50–950 ramp

primary
#3F175B
secondary
#5F923C
accent
#E34586
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F175B

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

Preview Lab → · Contrast checker → · Palette generator →

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