#3F1159#3F1159

#3F1159 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.123 H 309.9°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#3F1159
RGBrgb(63, 17, 89)
HSLhsl(278, 68%, 21%)
HSVhsv(278, 81%, 35%)
CMYKcmyk(29.2%, 80.9%, 0%, 65.1%)
CIE-LABlab(16.40, 35.03, -33.33)
CIE-LCHlch(16.40, 48.35, 316.43°)
OKLaboklab(29.5% 0.079 -0.0945)
OKLCHoklch(29.5% 0.123 309.9)
XYZxyz(4.0532, 2.1790, 9.6563)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1159 #2B5911
analogous
#1B1159 #3F1159 #59114F
triadic
#3F1159 #593F11 #11593F
tetradic
#3F1159 #591B11 #2B5911 #114F59
square
#3F1159 #591B11 #2B5911 #114F59
split-complementary
#3F1159 #4F5911 #11591B
monochromatic
#12051A #1B0726 #3F1159 #631B8C #8825C0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3F1159#FFFFFF#000000##FFFFFF
##3F11591.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)
#00275B
Deuteranopia (green-blind)
#012957
Tritanopia (blue-blind)
#3B2234
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3f1159;
/* rgb */ color: rgb(63, 17, 89);
/* oklch */ color: oklch(29.5% 0.123 309.9);
Tailwind
colors: {
  custom: {
    50: '#775588',
    500: '#3f1159',
    950: '#000000',
  },
}
SCSS
$custom: #3f1159;
$custom-light: #775588;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1159",
  "rgb": {
    "r": 63,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 278.333,
    "s": 67.925,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29501,
    "c": 0.12317,
    "h": 309.9
  },
  "luminance": 0.02179
}

Semantic roles & 50–950 ramp

primary
#3F1159
secondary
#569234
accent
#EB3D7C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3F1159

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

Preview Lab → · Contrast checker → · Palette generator →

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