#3F3371#3F3371

#3F3371 is a dark, moderate violet. Relative luminance 0.046; OKLCH L 36.8% C 0.103 H 289.2°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#3F3371
RGBrgb(63, 51, 113)
HSLhsl(252, 38%, 32%)
HSVhsv(252, 55%, 44%)
CMYKcmyk(44.2%, 54.9%, 0%, 55.7%)
CIE-LABlab(25.61, 22.05, -34.19)
CIE-LCHlch(25.61, 40.69, 302.82°)
OKLaboklab(36.77% 0.0339 -0.0971)
OKLCHoklch(36.77% 0.103 289.2)
XYZxyz(6.2135, 4.6165, 16.1833)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F3371 #657133
analogous
#334671 #3F3371 #5E3371
triadic
#3F3371 #713F33 #33713F
tetradic
#3F3371 #713346 #657133 #33715E
square
#3F3371 #713346 #657133 #33715E
split-complementary
#3F3371 #715E33 #467133
monochromatic
#100D1D #272047 #3F3371 #57469B #7565B9

Accessibility & contrast

On white

10.92
#3F3371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3F3371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F3371
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F3371#FFFFFF#000000##FFFFFF
##3F33711.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173E73
Deuteranopia (green-blind)
#183B70
Tritanopia (blue-blind)
#31404D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3f3371;
/* rgb */ color: rgb(63, 51, 113);
/* oklch */ color: oklch(36.8% 0.103 289.2);
Tailwind
colors: {
  custom: {
    50: '#776b9a',
    500: '#3f3371',
    950: '#000000',
  },
}
SCSS
$custom: #3f3371;
$custom-light: #776b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#3f3371",
  "rgb": {
    "r": 63,
    "g": 51,
    "b": 113
  },
  "hsl": {
    "h": 251.613,
    "s": 37.805,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36774,
    "c": 0.10287,
    "h": 289.2
  },
  "luminance": 0.04617
}

Semantic roles & 50–950 ramp

primary
#3F3371
secondary
#95A25E
accent
#CE5AB7
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09060E
muted
#7B7A7E

Preview Lab

Preview with #3F3371

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

Preview Lab → · Contrast checker → · Palette generator →

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