#3F1767#3F1767

#3F1767 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.131 H 302.0°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#3F1767
RGBrgb(63, 23, 103)
HSLhsl(270, 63%, 25%)
HSVhsv(270, 78%, 40%)
CMYKcmyk(38.8%, 77.7%, 0%, 59.6%)
CIE-LABlab(18.58, 35.82, -39.08)
CIE-LCHlch(18.58, 53.02, 312.50°)
OKLaboklab(31.41% 0.0696 -0.1114)
OKLCHoklch(31.41% 0.131 302)
XYZxyz(4.8039, 2.6488, 13.0875)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1767 #3F6717
analogous
#171767 #3F1767 #671767
triadic
#3F1767 #673F17 #17673F
tetradic
#3F1767 #671717 #3F6717 #176767
square
#3F1767 #671717 #3F6717 #176767
split-complementary
#3F1767 #676717 #176717
monochromatic
#0F0619 #200C35 #3F1767 #5E2299 #7C2DCB

Accessibility & contrast

On white

13.73
#3F1767 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3F1767 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1767
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1767#FFFFFF#000000##FFFFFF
##3F17671.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D69
Deuteranopia (green-blind)
#002D65
Tritanopia (blue-blind)
#362B3D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3f1767;
/* rgb */ color: rgb(63, 23, 103);
/* oklch */ color: oklch(31.4% 0.131 302.0);
Tailwind
colors: {
  custom: {
    50: '#785893',
    500: '#3f1767',
    950: '#000000',
  },
}
SCSS
$custom: #3f1767;
$custom-light: #785893;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1767",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 270,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.31414,
    "c": 0.13141,
    "h": 302
  },
  "luminance": 0.02649
}

Semantic roles & 50–950 ramp

primary
#3F1767
secondary
#6D9D3D
accent
#E74194
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3F1767

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

Preview Lab → · Contrast checker → · Palette generator →

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