#3F3271#3F3271

#3F3271 is a dark, moderate violet. Relative luminance 0.045; OKLCH L 36.6% C 0.104 H 289.7°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#3F3271
RGBrgb(63, 50, 113)
HSLhsl(252, 39%, 32%)
HSVhsv(252, 56%, 44%)
CMYKcmyk(44.2%, 55.8%, 0%, 55.7%)
CIE-LABlab(25.35, 22.71, -34.61)
CIE-LCHlch(25.35, 41.40, 303.27°)
OKLaboklab(36.58% 0.0353 -0.0984)
OKLCHoklch(36.58% 0.104 289.7)
XYZxyz(6.1703, 4.5300, 16.1689)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F3271 #647132
analogous
#324571 #3F3271 #5F3271
triadic
#3F3271 #713F32 #32713F
tetradic
#3F3271 #713245 #647132 #32715F
square
#3F3271 #713245 #647132 #32715F
split-complementary
#3F3271 #715F32 #457132
monochromatic
#100C1C #271F47 #3F3271 #57459B #7563BA

Accessibility & contrast

On white

11.02
#3F3271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3F3271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F3271
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F3271#FFFFFF#000000##FFFFFF
##3F32711.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153D73
Deuteranopia (green-blind)
#163B70
Tritanopia (blue-blind)
#313F4C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f3271;
/* rgb */ color: rgb(63, 50, 113);
/* oklch */ color: oklch(36.6% 0.104 289.7);
Tailwind
colors: {
  custom: {
    50: '#786a9a',
    500: '#3f3271',
    950: '#000000',
  },
}
SCSS
$custom: #3f3271;
$custom-light: #786a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#3f3271",
  "rgb": {
    "r": 63,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 252.381,
    "s": 38.65,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36579,
    "c": 0.10448,
    "h": 289.7
  },
  "luminance": 0.0453
}

Semantic roles & 50–950 ramp

primary
#3F3271
secondary
#94A25D
accent
#CF59B6
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09060E
muted
#7B7A7E

Preview Lab

Preview with #3F3271

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

Preview Lab → · Contrast checker → · Palette generator →

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