#3F1985#3F1985

#3F1985 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.164 H 291.2°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#3F1985
RGBrgb(63, 25, 133)
HSLhsl(261, 68%, 31%)
HSVhsv(261, 81%, 52%)
CMYKcmyk(52.6%, 81.2%, 0%, 47.8%)
CIE-LABlab(21.75, 43.13, -53.17)
CIE-LCHlch(21.75, 68.46, 309.05°)
OKLaboklab(34.5% 0.0592 -0.1528)
OKLCHoklch(34.5% 0.164 291.2)
XYZxyz(6.6300, 3.4452, 22.5014)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1985 #5F8519
analogous
#192985 #3F1985 #751985
triadic
#3F1985 #853F19 #19853F
tetradic
#3F1985 #851929 #5F8519 #198575
square
#3F1985 #851929 #5F8519 #198575
split-complementary
#3F1985 #857519 #298519
monochromatic
#0E061E #270F51 #3F1985 #5723B9 #753EDB

Accessibility & contrast

On white

12.43
#3F1985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3F1985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1985
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1985#FFFFFF#000000##FFFFFF
##3F19851.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#26384F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f1985;
/* rgb */ color: rgb(63, 25, 133);
/* oklch */ color: oklch(34.5% 0.164 291.2);
Tailwind
colors: {
  custom: {
    50: '#7c5baa',
    500: '#3f1985',
    950: '#000000',
  },
}
SCSS
$custom: #3f1985;
$custom-light: #7c5baa;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1985",
  "rgb": {
    "r": 63,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 261.111,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34503,
    "c": 0.16384,
    "h": 291.2
  },
  "luminance": 0.03445
}

Semantic roles & 50–950 ramp

primary
#3F1985
secondary
#8FB941
accent
#EB3DAE
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3F1985

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

Preview Lab → · Contrast checker → · Palette generator →

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