#3F187F#3F187F

#3F187F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.158 H 293.1°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#3F187F
RGBrgb(63, 24, 127)
HSLhsl(263, 68%, 30%)
HSVhsv(263, 81%, 50%)
CMYKcmyk(50.4%, 81.1%, 0%, 50.2%)
CIE-LABlab(20.99, 41.91, -50.62)
CIE-LCHlch(20.99, 65.72, 309.62°)
OKLaboklab(33.79% 0.0619 -0.1453)
OKLCHoklch(33.79% 0.158 293.1)
XYZxyz(6.2062, 3.2421, 20.3733)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F187F #587F18
analogous
#18257F #3F187F #72187F
triadic
#3F187F #7F3F18 #187F3F
tetradic
#3F187F #7F1825 #587F18 #187F72
square
#3F187F #7F1825 #587F18 #187F72
split-complementary
#3F187F #7F7218 #257F18
monochromatic
#0D051A #250E4C #3F187F #5922B2 #7538D9

Accessibility & contrast

On white

12.74
#3F187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3F187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F187F
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F187F#FFFFFF#000000##FFFFFF
##3F187F1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#2B354B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f187f;
/* rgb */ color: rgb(63, 24, 127);
/* oklch */ color: oklch(33.8% 0.158 293.1);
Tailwind
colors: {
  custom: {
    50: '#7c5aa5',
    500: '#3f187f',
    950: '#000000',
  },
}
SCSS
$custom: #3f187f;
$custom-light: #7c5aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f187f",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 262.718,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33795,
    "c": 0.15795,
    "h": 293.1
  },
  "luminance": 0.03242
}

Semantic roles & 50–950 ramp

primary
#3F187F
secondary
#87B33F
accent
#EB3DA9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F187F

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

Preview Lab → · Contrast checker → · Palette generator →

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