#3F187B#3F187B

#3F187B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.153 H 294.3°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#3F187B
RGBrgb(63, 24, 123)
HSLhsl(264, 67%, 29%)
HSVhsv(264, 80%, 48%)
CMYKcmyk(48.8%, 80.5%, 0%, 51.8%)
CIE-LABlab(20.60, 40.80, -48.72)
CIE-LCHlch(20.60, 63.55, 309.94°)
OKLaboklab(33.4% 0.0632 -0.1397)
OKLCHoklch(33.4% 0.153 294.3)
XYZxyz(5.9507, 3.1399, 19.0276)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F187B #547B18
analogous
#18237B #3F187B #71187B
triadic
#3F187B #7B3F18 #187B3F
tetradic
#3F187B #7B1823 #547B18 #187B71
square
#3F187B #7B1823 #547B18 #187B71
split-complementary
#3F187B #7B7118 #237B18
monochromatic
#0D051A #250E48 #3F187B #5922AE #7636D8

Accessibility & contrast

On white

12.90
#3F187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3F187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F187B
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F187B#FFFFFF#000000##FFFFFF
##3F187B1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#2D3449
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f187b;
/* rgb */ color: rgb(63, 24, 123);
/* oklch */ color: oklch(33.4% 0.153 294.3);
Tailwind
colors: {
  custom: {
    50: '#7b5aa2',
    500: '#3f187b',
    950: '#000000',
  },
}
SCSS
$custom: #3f187b;
$custom-light: #7b5aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f187b",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 263.636,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33401,
    "c": 0.15336,
    "h": 294.3
  },
  "luminance": 0.0314
}

Semantic roles & 50–950 ramp

primary
#3F187B
secondary
#83B03F
accent
#EA3EA6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F187B

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

Preview Lab → · Contrast checker → · Palette generator →

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