#3F1689#3F1689

#3F1689 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.171 H 290.5°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#3F1689
RGBrgb(63, 22, 137)
HSLhsl(261, 72%, 31%)
HSVhsv(261, 84%, 54%)
CMYKcmyk(54%, 83.9%, 0%, 46.3%)
CIE-LABlab(21.71, 45.53, -55.73)
CIE-LCHlch(21.71, 71.96, 309.25°)
OKLaboklab(34.61% 0.0599 -0.1602)
OKLCHoklch(34.61% 0.171 290.5)
XYZxyz(6.8509, 3.4364, 23.9644)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1689 #608916
analogous
#162789 #3F1689 #781689
triadic
#3F1689 #893F16 #16893F
tetradic
#3F1689 #891627 #608916 #168978
square
#3F1689 #891627 #608916 #168978
split-complementary
#3F1689 #897816 #278916
monochromatic
#0F0520 #270E54 #3F1689 #571EBE #753ADF

Accessibility & contrast

On white

12.45
#3F1689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1689
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1689#FFFFFF#000000##FFFFFF
##3F16891.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#003187
Tritanopia (blue-blind)
#233951
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f1689;
/* rgb */ color: rgb(63, 22, 137);
/* oklch */ color: oklch(34.6% 0.171 290.5);
Tailwind
colors: {
  custom: {
    50: '#7d5aad',
    500: '#3f1689',
    950: '#000000',
  },
}
SCSS
$custom: #3f1689;
$custom-light: #7d5aad;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1689",
  "rgb": {
    "r": 63,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 261.391,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34605,
    "c": 0.17106,
    "h": 290.5
  },
  "luminance": 0.03437
}

Semantic roles & 50–950 ramp

primary
#3F1689
secondary
#90BD3E
accent
#EF39AE
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #3F1689

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

Preview Lab → · Contrast checker → · Palette generator →

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