#3F2097#3F2097

#3F2097 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.178 H 285.8°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#3F2097
RGBrgb(63, 32, 151)
HSLhsl(256, 65%, 36%)
HSVhsv(256, 79%, 59%)
CMYKcmyk(58.3%, 78.8%, 0%, 40.8%)
CIE-LABlab(24.71, 45.00, -59.48)
CIE-LCHlch(24.71, 74.58, 307.11°)
OKLaboklab(37.12% 0.0485 -0.1713)
OKLCHoklch(37.12% 0.178 285.8)
XYZxyz(8.1506, 4.3237, 29.6772)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2097 #789720
analogous
#203D97 #3F2097 #7A2097
triadic
#3F2097 #973F20 #20973F
tetradic
#3F2097 #97203D #789720 #20977A
square
#3F2097 #97203D #789720 #20977A
split-complementary
#3F2097 #977A20 #3D9720
monochromatic
#150B32 #2A1564 #3F2097 #542BC9 #7956DB

Accessibility & contrast

On white

11.26
#3F2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3F2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2097
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2097#FFFFFF#000000##FFFFFF
##3F20971.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f2097;
/* rgb */ color: rgb(63, 32, 151);
/* oklch */ color: oklch(37.1% 0.178 285.8);
Tailwind
colors: {
  custom: {
    50: '#7f60b7',
    500: '#3f2097',
    950: '#000000',
  },
}
SCSS
$custom: #3f2097;
$custom-light: #7f60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2097",
  "rgb": {
    "r": 63,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 255.63,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37122,
    "c": 0.17802,
    "h": 285.8
  },
  "luminance": 0.04324
}

Semantic roles & 50–950 ramp

primary
#3F2097
secondary
#A3BF54
accent
#E840BC
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F2097

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

Preview Lab → · Contrast checker → · Palette generator →

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