#3F1154#3F1154

#3F1154 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.1% C 0.118 H 312.7°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#3F1154
RGBrgb(63, 17, 84)
HSLhsl(281, 66%, 20%)
HSVhsv(281, 80%, 33%)
CMYKcmyk(25%, 79.8%, 0%, 67.1%)
CIE-LABlab(15.99, 33.82, -30.61)
CIE-LCHlch(15.99, 45.62, 317.85°)
OKLaboklab(29.08% 0.0799 -0.0865)
OKLCHoklch(29.08% 0.118 312.7)
XYZxyz(3.8503, 2.0979, 8.5879)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1154 #265411
analogous
#1D1154 #3F1154 #541148
triadic
#3F1154 #543F11 #11543F
tetradic
#3F1154 #541D11 #265411 #114854
square
#3F1154 #541D11 #265411 #114854
split-complementary
#3F1154 #485411 #11541D
monochromatic
#130519 #190721 #3F1154 #651B87 #8B26BA

Accessibility & contrast

On white

14.79
#3F1154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#3F1154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1154
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1154#FFFFFF#000000##FFFFFF
##3F11541.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#092953
Tritanopia (blue-blind)
#3D2031
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3f1154;
/* rgb */ color: rgb(63, 17, 84);
/* oklch */ color: oklch(29.1% 0.118 312.7);
Tailwind
colors: {
  custom: {
    50: '#775485',
    500: '#3f1154',
    950: '#000000',
  },
}
SCSS
$custom: #3f1154;
$custom-light: #775485;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1154",
  "rgb": {
    "r": 63,
    "g": 17,
    "b": 84
  },
  "hsl": {
    "h": 281.194,
    "s": 66.337,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29084,
    "c": 0.11779,
    "h": 312.7
  },
  "luminance": 0.02098
}

Semantic roles & 50–950 ramp

primary
#3F1154
secondary
#508D34
accent
#E93F74
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3F1154

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

Preview Lab → · Contrast checker → · Palette generator →

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