#3F1155#3F1155

#3F1155 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.2% C 0.119 H 312.2°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#3F1155
RGBrgb(63, 17, 85)
HSLhsl(281, 67%, 20%)
HSVhsv(281, 80%, 33%)
CMYKcmyk(25.9%, 80%, 0%, 66.7%)
CIE-LABlab(16.07, 34.06, -31.16)
CIE-LCHlch(16.07, 46.16, 317.55°)
OKLaboklab(29.17% 0.0798 -0.0881)
OKLCHoklch(29.17% 0.119 312.2)
XYZxyz(3.8897, 2.1136, 8.7956)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1155 #275511
analogous
#1D1155 #3F1155 #551149
triadic
#3F1155 #553F11 #11553F
tetradic
#3F1155 #551D11 #275511 #114955
square
#3F1155 #551D11 #275511 #114955
split-complementary
#3F1155 #495511 #11551D
monochromatic
#13051A #190722 #3F1155 #651B88 #8B25BB

Accessibility & contrast

On white

14.76
#3F1155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1155
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1155#FFFFFF#000000##FFFFFF
##3F11551.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f1155;
/* rgb */ color: rgb(63, 17, 85);
/* oklch */ color: oklch(29.2% 0.119 312.2);
Tailwind
colors: {
  custom: {
    50: '#775485',
    500: '#3f1155',
    950: '#000000',
  },
}
SCSS
$custom: #3f1155;
$custom-light: #775485;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1155",
  "rgb": {
    "r": 63,
    "g": 17,
    "b": 85
  },
  "hsl": {
    "h": 280.588,
    "s": 66.667,
    "l": 20
  },
  "oklch": {
    "l": 0.29166,
    "c": 0.11887,
    "h": 312.2
  },
  "luminance": 0.02114
}

Semantic roles & 50–950 ramp

primary
#3F1155
secondary
#518E34
accent
#EA3E76
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3F1155

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

Preview Lab → · Contrast checker → · Palette generator →

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