#3F2187#3F2187

#3F2187 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.158 H 289.3°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#3F2187
RGBrgb(63, 33, 135)
HSLhsl(258, 61%, 33%)
HSVhsv(258, 76%, 53%)
CMYKcmyk(53.3%, 75.6%, 0%, 47.1%)
CIE-LABlab(23.32, 39.78, -51.84)
CIE-LCHlch(23.32, 65.34, 307.50°)
OKLaboklab(35.66% 0.0521 -0.149)
OKLCHoklch(35.66% 0.158 289.3)
XYZxyz(6.9657, 3.8934, 23.3014)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2187 #698721
analogous
#213687 #3F2187 #722187
triadic
#3F2187 #873F21 #21873F
tetradic
#3F2187 #872136 #698721 #218772
square
#3F2187 #872136 #698721 #218772
split-complementary
#3F2187 #877221 #368721
monochromatic
#110925 #281556 #3F2187 #562DB8 #764FD4

Accessibility & contrast

On white

11.81
#3F2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3F2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2187
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2187#FFFFFF#000000##FFFFFF
##3F21871.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#243D52
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3f2187;
/* rgb */ color: rgb(63, 33, 135);
/* oklch */ color: oklch(35.7% 0.158 289.3);
Tailwind
colors: {
  custom: {
    50: '#7c5fab',
    500: '#3f2187',
    950: '#000000',
  },
}
SCSS
$custom: #3f2187;
$custom-light: #7c5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2187",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 257.647,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35663,
    "c": 0.15782,
    "h": 289.3
  },
  "luminance": 0.03894
}

Semantic roles & 50–950 ramp

primary
#3F2187
secondary
#98B74D
accent
#E444B5
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3F2187

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

Preview Lab → · Contrast checker → · Palette generator →

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