#3F2199#3F2199

#3F2199 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.179 H 285.2°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#3F2199
RGBrgb(63, 33, 153)
HSLhsl(255, 65%, 36%)
HSVhsv(255, 78%, 60%)
CMYKcmyk(58.8%, 78.4%, 0%, 40%)
CIE-LABlab(25.09, 45.10, -60.09)
CIE-LCHlch(25.09, 75.13, 306.89°)
OKLaboklab(37.44% 0.0472 -0.1731)
OKLCHoklch(37.44% 0.179 285.2)
XYZxyz(8.3418, 4.4439, 30.5490)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2199 #7B9921
analogous
#213F99 #3F2199 #7B2199
triadic
#3F2199 #993F21 #21993F
tetradic
#3F2199 #99213F #7B9921 #21997B
square
#3F2199 #99213F #7B9921 #21997B
split-complementary
#3F2199 #997B21 #3F9921
monochromatic
#160B34 #2A1667 #3F2199 #542CCB #7A59DB

Accessibility & contrast

On white

11.12
#3F2199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3F2199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2199
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2199#FFFFFF#000000##FFFFFF
##3F21991.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9C
Deuteranopia (green-blind)
#003897
Tritanopia (blue-blind)
#0E445C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f2199;
/* rgb */ color: rgb(63, 33, 153);
/* oklch */ color: oklch(37.4% 0.179 285.2);
Tailwind
colors: {
  custom: {
    50: '#7f60b8',
    500: '#3f2199',
    950: '#000000',
  },
}
SCSS
$custom: #3f2199;
$custom-light: #7f60b8;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2199",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 255,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37444,
    "c": 0.17941,
    "h": 285.2
  },
  "luminance": 0.04444
}

Semantic roles & 50–950 ramp

primary
#3F2199
secondary
#A5BF56
accent
#E840BE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F2199

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

Preview Lab → · Contrast checker → · Palette generator →

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