#3F1790#3F1790

#3F1790 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.178 H 288.6°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#3F1790
RGBrgb(63, 23, 144)
HSLhsl(260, 72%, 33%)
HSVhsv(260, 84%, 56%)
CMYKcmyk(56.3%, 84%, 0%, 43.5%)
CIE-LABlab(22.59, 47.04, -58.65)
CIE-LCHlch(22.59, 75.18, 308.73°)
OKLaboklab(35.43% 0.0567 -0.1688)
OKLCHoklch(35.43% 0.178 288.6)
XYZxyz(7.3889, 3.6828, 26.7017)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1790 #689017
analogous
#172B90 #3F1790 #7C1790
triadic
#3F1790 #903F17 #17903F
tetradic
#3F1790 #90172B #689017 #17907C
square
#3F1790 #90172B #689017 #17907C
split-complementary
#3F1790 #907C17 #2B9017
monochromatic
#110626 #280F5B #3F1790 #561FC5 #7641E1

Accessibility & contrast

On white

12.09
#3F1790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3F1790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1790
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1790#FFFFFF#000000##FFFFFF
##3F17901.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#00338E
Tritanopia (blue-blind)
#1C3C55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f1790;
/* rgb */ color: rgb(63, 23, 144);
/* oklch */ color: oklch(35.4% 0.178 288.6);
Tailwind
colors: {
  custom: {
    50: '#7e5bb2',
    500: '#3f1790',
    950: '#000000',
  },
}
SCSS
$custom: #3f1790;
$custom-light: #7e5bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1790",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 259.835,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35433,
    "c": 0.17803,
    "h": 288.6
  },
  "luminance": 0.03683
}

Semantic roles & 50–950 ramp

primary
#3F1790
secondary
#97C142
accent
#EF39B3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F1790

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

Preview Lab → · Contrast checker → · Palette generator →

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