#3F154C#3F154C

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

Color values

HEX#3F154C
RGBrgb(63, 21, 76)
HSLhsl(286, 57%, 19%)
HSVhsv(286, 72%, 30%)
CMYKcmyk(17.1%, 72.4%, 0%, 70.2%)
CIE-LABlab(16.08, 29.99, -25.01)
CIE-LCHlch(16.08, 39.05, 320.17°)
OKLaboklab(28.96% 0.0759 -0.0701)
OKLCHoklch(28.96% 0.103 317.3)
XYZxyz(3.6224, 2.1150, 7.0535)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F154C #224C15
analogous
#24154C #3F154C #4C153E
triadic
#3F154C #4C3F15 #154C3F
tetradic
#3F154C #4C2415 #224C15 #153E4C
square
#3F154C #4C2415 #224C15 #153E4C
split-complementary
#3F154C #3E4C15 #154C24
monochromatic
#140718 #17081C #3F154C #67227C #8E2FAC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3F154C#FFFFFF#000000##FFFFFF
##3F154C1.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)
#02254E
Deuteranopia (green-blind)
#16294B
Tritanopia (blue-blind)
#3E1F2E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3f154c;
/* rgb */ color: rgb(63, 21, 76);
/* oklch */ color: oklch(29.0% 0.103 317.3);
Tailwind
colors: {
  custom: {
    50: '#76567e',
    500: '#3f154c',
    950: '#000000',
  },
}
SCSS
$custom: #3f154c;
$custom-light: #76567e;
$custom-dark: #000000;
JSON
{
  "hex": "#3f154c",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 285.818,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.28955,
    "c": 0.1033,
    "h": 317.3
  },
  "luminance": 0.02115
}

Semantic roles & 50–950 ramp

primary
#3F154C
secondary
#4B8439
accent
#E0486C
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #3F154C

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

Preview Lab → · Contrast checker → · Palette generator →

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