#3F2189#3F2189

#3F2189 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.160 H 288.8°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#3F2189
RGBrgb(63, 33, 137)
HSLhsl(257, 61%, 33%)
HSVhsv(257, 76%, 54%)
CMYKcmyk(54%, 75.9%, 0%, 46.3%)
CIE-LABlab(23.51, 40.37, -52.78)
CIE-LCHlch(23.51, 66.45, 307.41°)
OKLaboklab(35.86% 0.0516 -0.1517)
OKLCHoklch(35.86% 0.16 288.8)
XYZxyz(7.1078, 3.9503, 24.0500)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2189 #6B8921
analogous
#213789 #3F2189 #732189
triadic
#3F2189 #893F21 #21893F
tetradic
#3F2189 #892137 #6B8921 #218973
square
#3F2189 #892137 #6B8921 #218973
split-complementary
#3F2189 #897321 #378921
monochromatic
#120926 #281558 #3F2189 #562DBA #7650D5

Accessibility & contrast

On white

11.73
#3F2189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3F2189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2189
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2189#FFFFFF#000000##FFFFFF
##3F21891.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003587
Tritanopia (blue-blind)
#233D53
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3f2189;
/* rgb */ color: rgb(63, 33, 137);
/* oklch */ color: oklch(35.9% 0.160 288.8);
Tailwind
colors: {
  custom: {
    50: '#7d60ac',
    500: '#3f2189',
    950: '#000000',
  },
}
SCSS
$custom: #3f2189;
$custom-light: #7d60ac;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2189",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 257.308,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35856,
    "c": 0.16025,
    "h": 288.8
  },
  "luminance": 0.03951
}

Semantic roles & 50–950 ramp

primary
#3F2189
secondary
#99B84E
accent
#E444B6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3F2189

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

Preview Lab → · Contrast checker → · Palette generator →

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