#3F1257#3F1257

#3F1257 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.4% C 0.120 H 310.9°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#3F1257
RGBrgb(63, 18, 87)
HSLhsl(279, 66%, 21%)
HSVhsv(279, 79%, 34%)
CMYKcmyk(27.6%, 79.3%, 0%, 65.9%)
CIE-LABlab(16.39, 34.09, -31.99)
CIE-LCHlch(16.39, 46.75, 316.82°)
OKLaboklab(29.44% 0.0783 -0.0906)
OKLCHoklch(29.44% 0.12 310.9)
XYZxyz(3.9862, 2.1776, 9.2253)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1257 #2A5712
analogous
#1C1257 #3F1257 #57124C
triadic
#3F1257 #573F12 #12573F
tetradic
#3F1257 #571C12 #2A5712 #124C57
square
#3F1257 #571C12 #2A5712 #124C57
split-complementary
#3F1257 #4C5712 #12571C
monochromatic
#120519 #1A0824 #3F1257 #641C8A #8827BC

Accessibility & contrast

On white

14.63
#3F1257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#3F1257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1257
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1257#FFFFFF#000000##FFFFFF
##3F12571.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002759
Deuteranopia (green-blind)
#062956
Tritanopia (blue-blind)
#3C2233
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3f1257;
/* rgb */ color: rgb(63, 18, 87);
/* oklch */ color: oklch(29.4% 0.120 310.9);
Tailwind
colors: {
  custom: {
    50: '#775587',
    500: '#3f1257',
    950: '#000000',
  },
}
SCSS
$custom: #3f1257;
$custom-light: #775587;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1257",
  "rgb": {
    "r": 63,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 279.13,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29444,
    "c": 0.11975,
    "h": 310.9
  },
  "luminance": 0.02177
}

Semantic roles & 50–950 ramp

primary
#3F1257
secondary
#559035
accent
#E93F7A
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3F1257

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

Preview Lab → · Contrast checker → · Palette generator →

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