#3F207B#3F207B

#3F207B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.144 H 292.8°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#3F207B
RGBrgb(63, 32, 123)
HSLhsl(260, 59%, 30%)
HSVhsv(260, 74%, 48%)
CMYKcmyk(48.8%, 74%, 0%, 51.8%)
CIE-LABlab(22.02, 36.77, -46.40)
CIE-LCHlch(22.02, 59.20, 308.40°)
OKLaboklab(34.4% 0.0559 -0.133)
OKLCHoklch(34.4% 0.144 292.8)
XYZxyz(6.1406, 3.5196, 19.0909)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F207B #5C7B20
analogous
#202E7B #3F207B #6D207B
triadic
#3F207B #7B3F20 #207B3F
tetradic
#3F207B #7B202E #5C7B20 #207B6D
square
#3F207B #7B202E #5C7B20 #207B6D
split-complementary
#3F207B #7B6D20 #2E7B20
monochromatic
#0D071A #26134A #3F207B #582DAC #7546CF

Accessibility & contrast

On white

12.32
#3F207B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3F207B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F207B
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F207B#FFFFFF#000000##FFFFFF
##3F207B1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#2D374B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f207b;
/* rgb */ color: rgb(63, 32, 123);
/* oklch */ color: oklch(34.4% 0.144 292.8);
Tailwind
colors: {
  custom: {
    50: '#7a5ea2',
    500: '#3f207b',
    950: '#000000',
  },
}
SCSS
$custom: #3f207b;
$custom-light: #7a5ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f207b",
  "rgb": {
    "r": 63,
    "g": 32,
    "b": 123
  },
  "hsl": {
    "h": 260.44,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.344,
    "c": 0.14424,
    "h": 292.8
  },
  "luminance": 0.0352
}

Semantic roles & 50–950 ramp

primary
#3F207B
secondary
#8CAE49
accent
#E246AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F207B

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

Preview Lab → · Contrast checker → · Palette generator →

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