#3F1988#3F1988

#3F1988 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.167 H 290.4°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#3F1988
RGBrgb(63, 25, 136)
HSLhsl(261, 69%, 32%)
HSVhsv(261, 82%, 53%)
CMYKcmyk(53.7%, 81.6%, 0%, 46.7%)
CIE-LABlab(22.05, 43.97, -54.55)
CIE-LCHlch(22.05, 70.06, 308.87°)
OKLaboklab(34.81% 0.0582 -0.1568)
OKLCHoklch(34.81% 0.167 290.4)
XYZxyz(6.8402, 3.5293, 23.6086)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1988 #628819
analogous
#192A88 #3F1988 #771988
triadic
#3F1988 #883F19 #19883F
tetradic
#3F1988 #88192A #628819 #198877
square
#3F1988 #88192A #628819 #198877
split-complementary
#3F1988 #887719 #2A8819
monochromatic
#0F0621 #270F54 #3F1988 #5723BC #7540DC

Accessibility & contrast

On white

12.31
#3F1988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3F1988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1988
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1988#FFFFFF#000000##FFFFFF
##3F19881.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#243951
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f1988;
/* rgb */ color: rgb(63, 25, 136);
/* oklch */ color: oklch(34.8% 0.167 290.4);
Tailwind
colors: {
  custom: {
    50: '#7d5bac',
    500: '#3f1988',
    950: '#000000',
  },
}
SCSS
$custom: #3f1988;
$custom-light: #7d5bac;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1988",
  "rgb": {
    "r": 63,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 260.541,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34807,
    "c": 0.16726,
    "h": 290.4
  },
  "luminance": 0.0353
}

Semantic roles & 50–950 ramp

primary
#3F1988
secondary
#92BB41
accent
#EC3CB0
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #3F1988

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

Preview Lab → · Contrast checker → · Palette generator →

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