#3F175E#3F175E

#3F175E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.121 H 306.2°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#3F175E
RGBrgb(63, 23, 94)
HSLhsl(274, 61%, 23%)
HSVhsv(274, 76%, 37%)
CMYKcmyk(33%, 75.5%, 0%, 63.1%)
CIE-LABlab(17.82, 33.44, -34.37)
CIE-LCHlch(17.82, 47.96, 314.21°)
OKLaboklab(30.64% 0.0714 -0.0976)
OKLCHoklch(30.64% 0.121 306.2)
XYZxyz(4.3762, 2.4777, 10.8352)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F175E #365E17
analogous
#1B175E #3F175E #5E1759
triadic
#3F175E #5E3F17 #175E3F
tetradic
#3F175E #5E1B17 #365E17 #17595E
square
#3F175E #5E1B17 #365E17 #17595E
split-complementary
#3F175E #595E17 #175E1B
monochromatic
#100619 #1E0B2D #3F175E #60238F #812FC0

Accessibility & contrast

On white

14.04
#3F175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F175E
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F175E#FFFFFF#000000##FFFFFF
##3F175E1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#002C5C
Tritanopia (blue-blind)
#3A2738
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3f175e;
/* rgb */ color: rgb(63, 23, 94);
/* oklch */ color: oklch(30.6% 0.121 306.2);
Tailwind
colors: {
  custom: {
    50: '#77588c',
    500: '#3f175e',
    950: '#000000',
  },
}
SCSS
$custom: #3f175e;
$custom-light: #77588c;
$custom-dark: #000000;
JSON
{
  "hex": "#3f175e",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 273.803,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30636,
    "c": 0.12095,
    "h": 306.2
  },
  "luminance": 0.02478
}

Semantic roles & 50–950 ramp

primary
#3F175E
secondary
#63953C
accent
#E4448A
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F175E

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

Preview Lab → · Contrast checker → · Palette generator →

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