#3F1256#3F1256

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

Color values

HEX#3F1256
RGBrgb(63, 18, 86)
HSLhsl(280, 65%, 20%)
HSVhsv(280, 79%, 34%)
CMYKcmyk(26.7%, 79.1%, 0%, 66.3%)
CIE-LABlab(16.31, 33.85, -31.45)
CIE-LCHlch(16.31, 46.20, 317.11°)
OKLaboklab(29.36% 0.0785 -0.089)
OKLCHoklch(29.36% 0.119 311.4)
XYZxyz(3.9456, 2.1614, 9.0116)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1256 #295612
analogous
#1D1256 #3F1256 #56124B
triadic
#3F1256 #563F12 #12563F
tetradic
#3F1256 #561D12 #295612 #124B56
square
#3F1256 #561D12 #295612 #124B56
split-complementary
#3F1256 #4B5612 #12561D
monochromatic
#130519 #1A0723 #3F1256 #641D89 #8927BB

Accessibility & contrast

On white

14.66
#3F1256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1256
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1256#FFFFFF#000000##FFFFFF
##3F12561.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f1256;
/* rgb */ color: rgb(63, 18, 86);
/* oklch */ color: oklch(29.4% 0.119 311.4);
Tailwind
colors: {
  custom: {
    50: '#775586',
    500: '#3f1256',
    950: '#000000',
  },
}
SCSS
$custom: #3f1256;
$custom-light: #775586;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1256",
  "rgb": {
    "r": 63,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 279.706,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29362,
    "c": 0.11866,
    "h": 311.4
  },
  "luminance": 0.02161
}

Semantic roles & 50–950 ramp

primary
#3F1256
secondary
#538F35
accent
#E83F79
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3F1256

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

Preview Lab → · Contrast checker → · Palette generator →

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