#3F2170#3F2170

#3F2170 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.129 H 296.1°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#3F2170
RGBrgb(63, 33, 112)
HSLhsl(263, 54%, 28%)
HSVhsv(263, 71%, 44%)
CMYKcmyk(43.7%, 70.5%, 0%, 56.1%)
CIE-LABlab(21.26, 32.99, -40.58)
CIE-LCHlch(21.26, 52.30, 309.11°)
OKLaboklab(33.56% 0.0569 -0.1159)
OKLCHoklch(33.56% 0.129 296.1)
XYZxyz(5.5176, 3.3142, 15.6751)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2170 #527021
analogous
#212A70 #3F2170 #662170
triadic
#3F2170 #703F21 #21703F
tetradic
#3F2170 #70212A #527021 #217066
square
#3F2170 #70212A #527021 #217066
split-complementary
#3F2170 #706621 #2A7021
monochromatic
#0D0718 #241341 #3F2170 #5A2F9F #7644C8

Accessibility & contrast

On white

12.63
#3F2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3F2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2170
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2170#FFFFFF#000000##FFFFFF
##3F21701.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003472
Deuteranopia (green-blind)
#00326E
Tritanopia (blue-blind)
#323445
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f2170;
/* rgb */ color: rgb(63, 33, 112);
/* oklch */ color: oklch(33.6% 0.129 296.1);
Tailwind
colors: {
  custom: {
    50: '#795e9a',
    500: '#3f2170',
    950: '#000000',
  },
}
SCSS
$custom: #3f2170;
$custom-light: #795e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2170",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 262.785,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33564,
    "c": 0.12909,
    "h": 296.1
  },
  "luminance": 0.03314
}

Semantic roles & 50–950 ramp

primary
#3F2170
secondary
#81A449
accent
#DE4AA6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3F2170

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

Preview Lab → · Contrast checker → · Palette generator →

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