#3F1775#3F1775

#3F1775 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.148 H 296.5°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#3F1775
RGBrgb(63, 23, 117)
HSLhsl(266, 67%, 27%)
HSVhsv(266, 80%, 46%)
CMYKcmyk(46.2%, 80.3%, 0%, 54.1%)
CIE-LABlab(19.86, 39.61, -46.09)
CIE-LCHlch(19.86, 60.77, 310.68°)
OKLaboklab(32.71% 0.0659 -0.132)
OKLCHoklch(32.71% 0.148 296.5)
XYZxyz(5.5663, 2.9538, 17.1030)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1775 #4D7517
analogous
#171E75 #3F1775 #6E1775
triadic
#3F1775 #753F17 #17753F
tetradic
#3F1775 #75171E #4D7517 #17756E
square
#3F1775 #75171E #4D7517 #17756E
split-complementary
#3F1775 #756E17 #1E7517
monochromatic
#0E051A #230D42 #3F1775 #5B21A8 #7730D6

Accessibility & contrast

On white

13.20
#3F1775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3F1775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1775
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1775#FFFFFF#000000##FFFFFF
##3F17751.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003078
Deuteranopia (green-blind)
#002F73
Tritanopia (blue-blind)
#303145
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3f1775;
/* rgb */ color: rgb(63, 23, 117);
/* oklch */ color: oklch(32.7% 0.148 296.5);
Tailwind
colors: {
  custom: {
    50: '#7a599e',
    500: '#3f1775',
    950: '#000000',
  },
}
SCSS
$custom: #3f1775;
$custom-light: #7a599e;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1775",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 117
  },
  "hsl": {
    "h": 265.532,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32709,
    "c": 0.14754,
    "h": 296.5
  },
  "luminance": 0.02954
}

Semantic roles & 50–950 ramp

primary
#3F1775
secondary
#7CAA3D
accent
#EA3EA1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1775

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

Preview Lab → · Contrast checker → · Palette generator →

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