#3F147B#3F147B

#3F147B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.157 H 294.9°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#3F147B
RGBrgb(63, 20, 123)
HSLhsl(265, 72%, 28%)
HSVhsv(265, 84%, 48%)
CMYKcmyk(48.8%, 83.7%, 0%, 51.8%)
CIE-LABlab(19.99, 42.55, -49.71)
CIE-LCHlch(19.99, 65.43, 310.56°)
OKLaboklab(32.98% 0.0663 -0.1426)
OKLCHoklch(32.98% 0.157 294.9)
XYZxyz(5.8742, 2.9870, 19.0021)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F147B #507B14
analogous
#141C7B #3F147B #72147B
triadic
#3F147B #7B3F14 #147B3F
tetradic
#3F147B #7B141C #507B14 #147B72
square
#3F147B #7B141C #507B14 #147B72
split-complementary
#3F147B #7B7214 #1C7B14
monochromatic
#0D041A #240B46 #3F147B #5A1DB0 #762DDD

Accessibility & contrast

On white

13.15
#3F147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3F147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F147B
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F147B#FFFFFF#000000##FFFFFF
##3F147B1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#2D3248
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3f147b;
/* rgb */ color: rgb(63, 20, 123);
/* oklch */ color: oklch(33.0% 0.157 294.9);
Tailwind
colors: {
  custom: {
    50: '#7b58a2',
    500: '#3f147b',
    950: '#000000',
  },
}
SCSS
$custom: #3f147b;
$custom-light: #7b58a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f147b",
  "rgb": {
    "r": 63,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 265.049,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32981,
    "c": 0.15728,
    "h": 294.9
  },
  "luminance": 0.02987
}

Semantic roles & 50–950 ramp

primary
#3F147B
secondary
#7FB13A
accent
#EF39A3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F147B

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

Preview Lab → · Contrast checker → · Palette generator →

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