#3F1B88#3F1B88

#3F1B88 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.165 H 290.1°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#3F1B88
RGBrgb(63, 27, 136)
HSLhsl(260, 67%, 32%)
HSVhsv(260, 80%, 53%)
CMYKcmyk(53.7%, 80.1%, 0%, 46.7%)
CIE-LABlab(22.37, 43.05, -54.03)
CIE-LCHlch(22.37, 69.09, 308.55°)
OKLaboklab(35.03% 0.0567 -0.1553)
OKLCHoklch(35.03% 0.165 290.1)
XYZxyz(6.8845, 3.6179, 23.6234)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1B88 #64881B
analogous
#1B2D88 #3F1B88 #761B88
triadic
#3F1B88 #883F1B #1B883F
tetradic
#3F1B88 #881B2D #64881B #1B8876
square
#3F1B88 #881B2D #64881B #1B8876
split-complementary
#3F1B88 #88761B #2D881B
monochromatic
#100722 #271155 #3F1B88 #5725BB #7544DA

Accessibility & contrast

On white

12.18
#3F1B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3F1B88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1B88
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1B88#FFFFFF#000000##FFFFFF
##3F1B881.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#003386
Tritanopia (blue-blind)
#243A51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f1b88;
/* rgb */ color: rgb(63, 27, 136);
/* oklch */ color: oklch(35.0% 0.165 290.1);
Tailwind
colors: {
  custom: {
    50: '#7d5cac',
    500: '#3f1b88',
    950: '#000000',
  },
}
SCSS
$custom: #3f1b88;
$custom-light: #7d5cac;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1b88",
  "rgb": {
    "r": 63,
    "g": 27,
    "b": 136
  },
  "hsl": {
    "h": 259.817,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35026,
    "c": 0.16535,
    "h": 290.1
  },
  "luminance": 0.03618
}

Semantic roles & 50–950 ramp

primary
#3F1B88
secondary
#94BB44
accent
#EA3EB1
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #3F1B88

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

Preview Lab → · Contrast checker → · Palette generator →

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