#3F1157#3F1157

#3F1157 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.121 H 311.0°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#3F1157
RGBrgb(63, 17, 87)
HSLhsl(279, 67%, 20%)
HSVhsv(279, 80%, 34%)
CMYKcmyk(27.6%, 80.5%, 0%, 65.9%)
CIE-LABlab(16.23, 34.54, -32.25)
CIE-LCHlch(16.23, 47.26, 316.97°)
OKLaboklab(29.33% 0.0794 -0.0913)
OKLCHoklch(29.33% 0.121 311)
XYZxyz(3.9703, 2.1459, 9.2200)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1157 #295711
analogous
#1C1157 #3F1157 #57114C
triadic
#3F1157 #573F11 #11573F
tetradic
#3F1157 #571C11 #295711 #114C57
square
#3F1157 #571C11 #295711 #114C57
split-complementary
#3F1157 #4C5711 #11571C
monochromatic
#13051A #1A0724 #3F1157 #641B8A #8925BD

Accessibility & contrast

On white

14.69
#3F1157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1157
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1157#FFFFFF#000000##FFFFFF
##3F11571.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#042956
Tritanopia (blue-blind)
#3C2133
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3f1157;
/* rgb */ color: rgb(63, 17, 87);
/* oklch */ color: oklch(29.3% 0.121 311.0);
Tailwind
colors: {
  custom: {
    50: '#775487',
    500: '#3f1157',
    950: '#000000',
  },
}
SCSS
$custom: #3f1157;
$custom-light: #775487;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1157",
  "rgb": {
    "r": 63,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 279.429,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29333,
    "c": 0.12102,
    "h": 311
  },
  "luminance": 0.02146
}

Semantic roles & 50–950 ramp

primary
#3F1157
secondary
#539034
accent
#EA3E79
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3F1157

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

Preview Lab → · Contrast checker → · Palette generator →

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