#3F175D#3F175D

#3F175D is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.6% C 0.120 H 306.7°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#3F175D
RGBrgb(63, 23, 93)
HSLhsl(274, 60%, 23%)
HSVhsv(274, 75%, 36%)
CMYKcmyk(32.3%, 75.3%, 0%, 63.5%)
CIE-LABlab(17.74, 33.18, -33.84)
CIE-LCHlch(17.74, 47.39, 314.44°)
OKLaboklab(30.55% 0.0716 -0.096)
OKLCHoklch(30.55% 0.12 306.7)
XYZxyz(4.3317, 2.4599, 10.6004)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F175D #355D17
analogous
#1C175D #3F175D #5D1758
triadic
#3F175D #5D3F17 #175D3F
tetradic
#3F175D #5D1C17 #355D17 #17585D
square
#3F175D #5D1C17 #355D17 #17585D
split-complementary
#3F175D #585D17 #175D1C
monochromatic
#110619 #1E0B2C #3F175D #60238E #812FBF

Accessibility & contrast

On white

14.08
#3F175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F175D
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F175D#FFFFFF#000000##FFFFFF
##3F175D1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5F
Deuteranopia (green-blind)
#022C5C
Tritanopia (blue-blind)
#3A2738
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3f175d;
/* rgb */ color: rgb(63, 23, 93);
/* oklch */ color: oklch(30.6% 0.120 306.7);
Tailwind
colors: {
  custom: {
    50: '#77588b',
    500: '#3f175d',
    950: '#000000',
  },
}
SCSS
$custom: #3f175d;
$custom-light: #77588b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f175d",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 274.286,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30552,
    "c": 0.11978,
    "h": 306.7
  },
  "luminance": 0.0246
}

Semantic roles & 50–950 ramp

primary
#3F175D
secondary
#62943C
accent
#E34489
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F175D

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

Preview Lab → · Contrast checker → · Palette generator →

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