#3F2175#3F2175

#3F2175 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.135 H 294.4°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#3F2175
RGBrgb(63, 33, 117)
HSLhsl(261, 56%, 29%)
HSVhsv(261, 72%, 46%)
CMYKcmyk(46.2%, 71.8%, 0%, 54.1%)
CIE-LABlab(21.68, 34.46, -43.10)
CIE-LCHlch(21.68, 55.18, 308.64°)
OKLaboklab(34% 0.056 -0.1233)
OKLCHoklch(34% 0.135 294.4)
XYZxyz(5.8038, 3.4287, 17.1822)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2175 #577521
analogous
#212D75 #3F2175 #692175
triadic
#3F2175 #753F21 #21753F
tetradic
#3F2175 #75212D #577521 #217569
square
#3F2175 #75212D #577521 #217569
split-complementary
#3F2175 #756921 #2D7521
monochromatic
#0D0718 #251445 #3F2175 #592EA5 #7546CB

Accessibility & contrast

On white

12.46
#3F2175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3F2175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2175
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2175#FFFFFF#000000##FFFFFF
##3F21751.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003578
Deuteranopia (green-blind)
#003373
Tritanopia (blue-blind)
#303648
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f2175;
/* rgb */ color: rgb(63, 33, 117);
/* oklch */ color: oklch(34.0% 0.135 294.4);
Tailwind
colors: {
  custom: {
    50: '#795f9d',
    500: '#3f2175',
    950: '#000000',
  },
}
SCSS
$custom: #3f2175;
$custom-light: #795f9d;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2175",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 117
  },
  "hsl": {
    "h": 261.429,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34001,
    "c": 0.13545,
    "h": 294.4
  },
  "luminance": 0.03429
}

Semantic roles & 50–950 ramp

primary
#3F2175
secondary
#86A84A
accent
#DF49A9
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #3F2175

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

Preview Lab → · Contrast checker → · Palette generator →

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