#3F2197#3F2197

#3F2197 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.177 H 285.6°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#3F2197
RGBrgb(63, 33, 151)
HSLhsl(255, 64%, 36%)
HSVhsv(255, 78%, 59%)
CMYKcmyk(58.3%, 78.1%, 0%, 40.8%)
CIE-LABlab(24.88, 44.51, -59.20)
CIE-LCHlch(24.88, 74.06, 306.94°)
OKLaboklab(37.24% 0.0478 -0.1705)
OKLCHoklch(37.24% 0.177 285.6)
XYZxyz(8.1780, 4.3784, 29.6863)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2197 #799721
analogous
#213E97 #3F2197 #7A2197
triadic
#3F2197 #973F21 #21973F
tetradic
#3F2197 #97213E #799721 #21977A
square
#3F2197 #97213E #799721 #21977A
split-complementary
#3F2197 #977A21 #3E9721
monochromatic
#150B33 #2A1665 #3F2197 #542CC9 #7958DA

Accessibility & contrast

On white

11.20
#3F2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F2197
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2197#FFFFFF#000000##FFFFFF
##3F21971.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#12435B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f2197;
/* rgb */ color: rgb(63, 33, 151);
/* oklch */ color: oklch(37.2% 0.177 285.6);
Tailwind
colors: {
  custom: {
    50: '#7f60b7',
    500: '#3f2197',
    950: '#000000',
  },
}
SCSS
$custom: #3f2197;
$custom-light: #7f60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2197",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 255.254,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37241,
    "c": 0.17705,
    "h": 285.6
  },
  "luminance": 0.04379
}

Semantic roles & 50–950 ramp

primary
#3F2197
secondary
#A4BE55
accent
#E741BD
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F2197

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

Preview Lab → · Contrast checker → · Palette generator →

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