#3F2B71#3F2B71

#3F2B71 is a dark, moderate violet. Relative luminance 0.040; OKLCH L 35.3% C 0.116 H 292.7°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#3F2B71
RGBrgb(63, 43, 113)
HSLhsl(257, 45%, 31%)
HSVhsv(257, 62%, 44%)
CMYKcmyk(44.2%, 61.9%, 0%, 55.7%)
CIE-LABlab(23.59, 27.24, -37.44)
CIE-LCHlch(23.59, 46.30, 306.04°)
OKLaboklab(35.28% 0.0445 -0.1067)
OKLCHoklch(35.28% 0.116 292.7)
XYZxyz(5.8936, 3.9766, 16.0766)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2B71 #5D712B
analogous
#2B3A71 #3F2B71 #622B71
triadic
#3F2B71 #713F2B #2B713F
tetradic
#3F2B71 #712B3A #5D712B #2B7162
square
#3F2B71 #712B3A #5D712B #2B7162
split-complementary
#3F2B71 #71622B #3A712B
monochromatic
#0E0918 #261A45 #3F2B71 #583C9D #7557BF

Accessibility & contrast

On white

11.70
#3F2B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3F2B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2B71
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2B71#FFFFFF#000000##FFFFFF
##3F2B711.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#05376F
Tritanopia (blue-blind)
#313A49
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3f2b71;
/* rgb */ color: rgb(63, 43, 113);
/* oklch */ color: oklch(35.3% 0.116 292.7);
Tailwind
colors: {
  custom: {
    50: '#78659a',
    500: '#3f2b71',
    950: '#000000',
  },
}
SCSS
$custom: #3f2b71;
$custom-light: #78659a;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2b71",
  "rgb": {
    "r": 63,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 257.143,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35282,
    "c": 0.1156,
    "h": 292.7
  },
  "luminance": 0.03977
}

Semantic roles & 50–950 ramp

primary
#3F2B71
secondary
#8DA355
accent
#D553B0
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09050E
muted
#7B7A7E

Preview Lab

Preview with #3F2B71

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

Preview Lab → · Contrast checker → · Palette generator →

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