#3F2188#3F2188

#3F2188 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.159 H 289.0°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#3F2188
RGBrgb(63, 33, 136)
HSLhsl(257, 61%, 33%)
HSVhsv(257, 76%, 53%)
CMYKcmyk(53.7%, 75.7%, 0%, 46.7%)
CIE-LABlab(23.41, 40.07, -52.31)
CIE-LCHlch(23.41, 65.90, 307.45°)
OKLaboklab(35.76% 0.0519 -0.1504)
OKLCHoklch(35.76% 0.159 289)
XYZxyz(7.0364, 3.9217, 23.6740)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2188 #6A8821
analogous
#213688 #3F2188 #722188
triadic
#3F2188 #883F21 #21883F
tetradic
#3F2188 #882136 #6A8821 #218872
square
#3F2188 #882136 #6A8821 #218872
split-complementary
#3F2188 #887221 #368821
monochromatic
#110925 #281557 #3F2188 #562DB9 #764FD4

Accessibility & contrast

On white

11.77
#3F2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3F2188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2188
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2188#FFFFFF#000000##FFFFFF
##3F21881.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003586
Tritanopia (blue-blind)
#243D53
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3f2188;
/* rgb */ color: rgb(63, 33, 136);
/* oklch */ color: oklch(35.8% 0.159 289.0);
Tailwind
colors: {
  custom: {
    50: '#7c60ac',
    500: '#3f2188',
    950: '#000000',
  },
}
SCSS
$custom: #3f2188;
$custom-light: #7c60ac;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2188",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 257.476,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35759,
    "c": 0.15904,
    "h": 289
  },
  "luminance": 0.03922
}

Semantic roles & 50–950 ramp

primary
#3F2188
secondary
#99B84D
accent
#E444B5
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3F2188

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

Preview Lab → · Contrast checker → · Palette generator →

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