#3F1A80#3F1A80

#3F1A80 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.157 H 292.5°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#3F1A80
RGBrgb(63, 26, 128)
HSLhsl(262, 66%, 30%)
HSVhsv(262, 80%, 50%)
CMYKcmyk(50.8%, 79.7%, 0%, 49.8%)
CIE-LABlab(21.41, 41.26, -50.56)
CIE-LCHlch(21.41, 65.26, 309.22°)
OKLaboklab(34.12% 0.06 -0.1452)
OKLCHoklch(34.12% 0.157 292.5)
XYZxyz(6.3145, 3.3538, 20.7325)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1A80 #5B801A
analogous
#1A2880 #3F1A80 #721A80
triadic
#3F1A80 #803F1A #1A803F
tetradic
#3F1A80 #801A28 #5B801A #1A8072
square
#3F1A80 #801A28 #5B801A #1A8072
split-complementary
#3F1A80 #80721A #28801A
monochromatic
#0D051A #26104D #3F1A80 #5824B3 #753DD8

Accessibility & contrast

On white

12.57
#3F1A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3F1A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1A80
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1A80#FFFFFF#000000##FFFFFF
##3F1A801.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#00317E
Tritanopia (blue-blind)
#2A374C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f1a80;
/* rgb */ color: rgb(63, 26, 128);
/* oklch */ color: oklch(34.1% 0.157 292.5);
Tailwind
colors: {
  custom: {
    50: '#7c5ba6',
    500: '#3f1a80',
    950: '#000000',
  },
}
SCSS
$custom: #3f1a80;
$custom-light: #7c5ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1a80",
  "rgb": {
    "r": 63,
    "g": 26,
    "b": 128
  },
  "hsl": {
    "h": 261.765,
    "s": 66.234,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34118,
    "c": 0.15707,
    "h": 292.5
  },
  "luminance": 0.03354
}

Semantic roles & 50–950 ramp

primary
#3F1A80
secondary
#8BB442
accent
#E93FAB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1A80

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

Preview Lab → · Contrast checker → · Palette generator →

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