#3F2198#3F2198

#3F2198 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.178 H 285.4°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#3F2198
RGBrgb(63, 33, 152)
HSLhsl(255, 64%, 36%)
HSVhsv(255, 78%, 60%)
CMYKcmyk(58.6%, 78.3%, 0%, 40.4%)
CIE-LABlab(24.99, 44.80, -59.64)
CIE-LCHlch(24.99, 74.60, 306.91°)
OKLaboklab(37.34% 0.0475 -0.1718)
OKLCHoklch(37.34% 0.178 285.4)
XYZxyz(8.2595, 4.4110, 30.1159)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2198 #7A9821
analogous
#213F98 #3F2198 #7B2198
triadic
#3F2198 #983F21 #21983F
tetradic
#3F2198 #98213F #7A9821 #21987B
square
#3F2198 #98213F #7A9821 #21987B
split-complementary
#3F2198 #987B21 #3F9821
monochromatic
#150B33 #2A1666 #3F2198 #542CCA #7959DB

Accessibility & contrast

On white

11.16
#3F2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3F2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2198
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2198#FFFFFF#000000##FFFFFF
##3F21981.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#10435C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f2198;
/* rgb */ color: rgb(63, 33, 152);
/* oklch */ color: oklch(37.3% 0.178 285.4);
Tailwind
colors: {
  custom: {
    50: '#7f60b7',
    500: '#3f2198',
    950: '#000000',
  },
}
SCSS
$custom: #3f2198;
$custom-light: #7f60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2198",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 255.126,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37343,
    "c": 0.17823,
    "h": 285.4
  },
  "luminance": 0.04411
}

Semantic roles & 50–950 ramp

primary
#3F2198
secondary
#A4BF56
accent
#E740BD
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F2198

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

Preview Lab → · Contrast checker → · Palette generator →

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