#3F2160#3F2160

#3F2160 is a dark, moderate violet. Relative luminance 0.030; OKLCH L 32.3% C 0.108 H 302.7°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#3F2160
RGBrgb(63, 33, 96)
HSLhsl(269, 49%, 25%)
HSVhsv(269, 66%, 38%)
CMYKcmyk(34.4%, 65.6%, 0%, 62.4%)
CIE-LABlab(20.00, 28.41, -32.18)
CIE-LCHlch(20.00, 42.92, 311.44°)
OKLaboklab(32.26% 0.0585 -0.0912)
OKLCHoklch(32.26% 0.108 302.7)
XYZxyz(4.7046, 2.9890, 11.3931)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2160 #426021
analogous
#212360 #3F2160 #5E2160
triadic
#3F2160 #603F21 #21603F
tetradic
#3F2160 #602123 #426021 #21605E
square
#3F2160 #602123 #426021 #21605E
split-complementary
#3F2160 #605E21 #236021
monochromatic
#0F0817 #211132 #3F2160 #5D318E #7B40BB

Accessibility & contrast

On white

13.14
#3F2160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3F2160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2160
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2160#FFFFFF#000000##FFFFFF
##3F21601.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003062
Deuteranopia (green-blind)
#0F305F
Tritanopia (blue-blind)
#392E3D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3f2160;
/* rgb */ color: rgb(63, 33, 96);
/* oklch */ color: oklch(32.3% 0.108 302.7);
Tailwind
colors: {
  custom: {
    50: '#775e8e',
    500: '#3f2160',
    950: '#000000',
  },
}
SCSS
$custom: #3f2160;
$custom-light: #775e8e;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2160",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 96
  },
  "hsl": {
    "h": 268.571,
    "s": 48.837,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32255,
    "c": 0.10834,
    "h": 302.7
  },
  "luminance": 0.02989
}

Semantic roles & 50–950 ramp

primary
#3F2160
secondary
#709449
accent
#D84F97
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #3F2160

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

Preview Lab → · Contrast checker → · Palette generator →

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