#3F2098#3F2098

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

Color values

HEX#3F2098
RGBrgb(63, 32, 152)
HSLhsl(256, 65%, 36%)
HSVhsv(256, 79%, 60%)
CMYKcmyk(58.6%, 78.9%, 0%, 40.4%)
CIE-LABlab(24.82, 45.29, -59.92)
CIE-LCHlch(24.82, 75.11, 307.08°)
OKLaboklab(37.22% 0.0482 -0.1726)
OKLCHoklch(37.22% 0.179 285.6)
XYZxyz(8.2322, 4.3563, 30.1067)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2098 #799820
analogous
#203D98 #3F2098 #7B2098
triadic
#3F2098 #983F20 #20983F
tetradic
#3F2098 #98203D #799820 #20987B
square
#3F2098 #98203D #799820 #20987B
split-complementary
#3F2098 #987B20 #3D9820
monochromatic
#150B33 #2A1565 #3F2098 #542BCB #7957DC

Accessibility & contrast

On white

11.22
#3F2098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3F2098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2098
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2098#FFFFFF#000000##FFFFFF
##3F20981.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f2098;
/* rgb */ color: rgb(63, 32, 152);
/* oklch */ color: oklch(37.2% 0.179 285.6);
Tailwind
colors: {
  custom: {
    50: '#7f60b7',
    500: '#3f2098',
    950: '#000000',
  },
}
SCSS
$custom: #3f2098;
$custom-light: #7f60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2098",
  "rgb": {
    "r": 63,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 255.5,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37224,
    "c": 0.17919,
    "h": 285.6
  },
  "luminance": 0.04357
}

Semantic roles & 50–950 ramp

primary
#3F2098
secondary
#A4BF54
accent
#E840BD
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F2098

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

Preview Lab → · Contrast checker → · Palette generator →

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