#3F1768#3F1768

#3F1768 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.133 H 301.6°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#3F1768
RGBrgb(63, 23, 104)
HSLhsl(270, 64%, 25%)
HSVhsv(270, 78%, 41%)
CMYKcmyk(39.4%, 77.9%, 0%, 59.2%)
CIE-LABlab(18.67, 36.09, -39.60)
CIE-LCHlch(18.67, 53.57, 312.34°)
OKLaboklab(31.5% 0.0694 -0.1129)
OKLCHoklch(31.5% 0.133 301.6)
XYZxyz(4.8544, 2.6690, 13.3534)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1768 #406817
analogous
#171768 #3F1768 #681768
triadic
#3F1768 #683F17 #17683F
tetradic
#3F1768 #681717 #406817 #176868
square
#3F1768 #681717 #406817 #176868
split-complementary
#3F1768 #686817 #176817
monochromatic
#0F0619 #210C36 #3F1768 #5D229A #7C2DCC

Accessibility & contrast

On white

13.69
#3F1768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1768
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1768#FFFFFF#000000##FFFFFF
##3F17681.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002D66
Tritanopia (blue-blind)
#362B3E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3f1768;
/* rgb */ color: rgb(63, 23, 104);
/* oklch */ color: oklch(31.5% 0.133 301.6);
Tailwind
colors: {
  custom: {
    50: '#795894',
    500: '#3f1768',
    950: '#000000',
  },
}
SCSS
$custom: #3f1768;
$custom-light: #795894;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1768",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 269.63,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.31503,
    "c": 0.13257,
    "h": 301.6
  },
  "luminance": 0.02669
}

Semantic roles & 50–950 ramp

primary
#3F1768
secondary
#6E9E3D
accent
#E74195
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3F1768

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

Preview Lab → · Contrast checker → · Palette generator →

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