#3F207E#3F207E

#3F207E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.148 H 291.9°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#3F207E
RGBrgb(63, 32, 126)
HSLhsl(260, 59%, 31%)
HSVhsv(260, 75%, 49%)
CMYKcmyk(50%, 74.6%, 0%, 50.6%)
CIE-LABlab(22.29, 37.65, -47.86)
CIE-LCHlch(22.29, 60.89, 308.19°)
OKLaboklab(34.68% 0.0552 -0.1373)
OKLCHoklch(34.68% 0.148 291.9)
XYZxyz(6.3312, 3.5959, 20.0951)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F207E #5F7E20
analogous
#20307E #3F207E #6E207E
triadic
#3F207E #7E3F20 #207E3F
tetradic
#3F207E #7E2030 #5F7E20 #207E6E
square
#3F207E #7E2030 #5F7E20 #207E6E
split-complementary
#3F207E #7E6E20 #307E20
monochromatic
#0E071C #27144D #3F207E #572CAF #7548D0

Accessibility & contrast

On white

12.21
#3F207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3F207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F207E
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F207E#FFFFFF#000000##FFFFFF
##3F207E1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#2B394D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f207e;
/* rgb */ color: rgb(63, 32, 126);
/* oklch */ color: oklch(34.7% 0.148 291.9);
Tailwind
colors: {
  custom: {
    50: '#7b5ea4',
    500: '#3f207e',
    950: '#000000',
  },
}
SCSS
$custom: #3f207e;
$custom-light: #7b5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f207e",
  "rgb": {
    "r": 63,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 259.787,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34678,
    "c": 0.14795,
    "h": 291.9
  },
  "luminance": 0.03596
}

Semantic roles & 50–950 ramp

primary
#3F207E
secondary
#8FB149
accent
#E345AF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F207E

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

Preview Lab → · Contrast checker → · Palette generator →

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