#3F1255#3F1255

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

Color values

HEX#3F1255
RGBrgb(63, 18, 85)
HSLhsl(280, 65%, 20%)
HSVhsv(280, 79%, 33%)
CMYKcmyk(25.9%, 78.8%, 0%, 66.7%)
CIE-LABlab(16.23, 33.61, -30.90)
CIE-LCHlch(16.23, 45.65, 317.40°)
OKLaboklab(29.28% 0.0787 -0.0874)
OKLCHoklch(29.28% 0.118 312)
XYZxyz(3.9056, 2.1454, 8.8009)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1255 #285512
analogous
#1E1255 #3F1255 #551249
triadic
#3F1255 #553F12 #12553F
tetradic
#3F1255 #551E12 #285512 #124955
square
#3F1255 #551E12 #285512 #124955
split-complementary
#3F1255 #495512 #12551E
monochromatic
#130519 #1A0722 #3F1255 #641D88 #8A27BA

Accessibility & contrast

On white

14.70
#3F1255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#3F1255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1255
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1255#FFFFFF#000000##FFFFFF
##3F12551.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002657
Deuteranopia (green-blind)
#092954
Tritanopia (blue-blind)
#3C2132
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3f1255;
/* rgb */ color: rgb(63, 18, 85);
/* oklch */ color: oklch(29.3% 0.118 312.0);
Tailwind
colors: {
  custom: {
    50: '#775585',
    500: '#3f1255',
    950: '#000000',
  },
}
SCSS
$custom: #3f1255;
$custom-light: #775585;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1255",
  "rgb": {
    "r": 63,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 280.299,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.2928,
    "c": 0.11757,
    "h": 312
  },
  "luminance": 0.02145
}

Semantic roles & 50–950 ramp

primary
#3F1255
secondary
#528E35
accent
#E84077
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3F1255

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

Preview Lab → · Contrast checker → · Palette generator →

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