#3F2185#3F2185

#3F2185 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.155 H 289.8°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#3F2185
RGBrgb(63, 33, 133)
HSLhsl(258, 60%, 33%)
HSVhsv(258, 75%, 52%)
CMYKcmyk(52.6%, 75.2%, 0%, 47.8%)
CIE-LABlab(23.13, 39.18, -50.90)
CIE-LCHlch(23.13, 64.23, 307.59°)
OKLaboklab(35.47% 0.0526 -0.1462)
OKLCHoklch(35.47% 0.155 289.8)
XYZxyz(6.8262, 3.8376, 22.5668)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2185 #678521
analogous
#213585 #3F2185 #712185
triadic
#3F2185 #853F21 #21853F
tetradic
#3F2185 #852135 #678521 #218571
square
#3F2185 #852135 #678521 #218571
split-complementary
#3F2185 #857121 #358521
monochromatic
#110923 #281554 #3F2185 #562DB6 #764DD3

Accessibility & contrast

On white

11.88
#3F2185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3F2185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2185
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2185#FFFFFF#000000##FFFFFF
##3F21851.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#003583
Tritanopia (blue-blind)
#263C51
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3f2185;
/* rgb */ color: rgb(63, 33, 133);
/* oklch */ color: oklch(35.5% 0.155 289.8);
Tailwind
colors: {
  custom: {
    50: '#7c5fa9',
    500: '#3f2185',
    950: '#000000',
  },
}
SCSS
$custom: #3f2185;
$custom-light: #7c5fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2185",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 258,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35472,
    "c": 0.15537,
    "h": 289.8
  },
  "luminance": 0.03838
}

Semantic roles & 50–950 ramp

primary
#3F2185
secondary
#96B64C
accent
#E344B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3F2185

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

Preview Lab → · Contrast checker → · Palette generator →

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