#3F1776#3F1776

#3F1776 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.149 H 296.2°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#3F1776
RGBrgb(63, 23, 118)
HSLhsl(265, 67%, 28%)
HSVhsv(265, 81%, 46%)
CMYKcmyk(46.6%, 80.5%, 0%, 53.7%)
CIE-LABlab(19.95, 39.88, -46.57)
CIE-LCHlch(19.95, 61.32, 310.57°)
OKLaboklab(32.81% 0.0656 -0.1334)
OKLCHoklch(32.81% 0.149 296.2)
XYZxyz(5.6254, 2.9774, 17.4143)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1776 #4E7617
analogous
#171F76 #3F1776 #6E1776
triadic
#3F1776 #763F17 #17763F
tetradic
#3F1776 #76171F #4E7617 #17766E
square
#3F1776 #76171F #4E7617 #17766E
split-complementary
#3F1776 #766E17 #1F7617
monochromatic
#0E051A #240D43 #3F1776 #5A21A9 #7731D7

Accessibility & contrast

On white

13.16
#3F1776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3F1776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1776
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1776#FFFFFF#000000##FFFFFF
##3F17761.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002F74
Tritanopia (blue-blind)
#303146
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3f1776;
/* rgb */ color: rgb(63, 23, 118);
/* oklch */ color: oklch(32.8% 0.149 296.2);
Tailwind
colors: {
  custom: {
    50: '#7a599e',
    500: '#3f1776',
    950: '#000000',
  },
}
SCSS
$custom: #3f1776;
$custom-light: #7a599e;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1776",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 265.263,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32805,
    "c": 0.14868,
    "h": 296.2
  },
  "luminance": 0.02978
}

Semantic roles & 50–950 ramp

primary
#3F1776
secondary
#7DAB3E
accent
#EA3EA2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1776

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

Preview Lab → · Contrast checker → · Palette generator →

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