#3B147F#3B147F

#3B147F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.162 H 291.1°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#3B147F
RGBrgb(59, 20, 127)
HSLhsl(262, 73%, 29%)
HSVhsv(262, 84%, 50%)
CMYKcmyk(53.5%, 84.3%, 0%, 50.2%)
CIE-LABlab(19.89, 43.08, -52.44)
CIE-LCHlch(19.89, 67.87, 309.40°)
OKLaboklab(32.92% 0.0583 -0.1507)
OKLCHoklch(32.92% 0.162 291.1)
XYZxyz(5.8835, 2.9622, 20.3363)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B147F #587F14
analogous
#14237F #3B147F #71147F
triadic
#3B147F #7F3B14 #147F3B
tetradic
#3B147F #7F1423 #587F14 #147F71
square
#3B147F #7F1423 #587F14 #147F71
split-complementary
#3B147F #7F7114 #237F14
monochromatic
#0C041A #220C4A #3B147F #541CB4 #6F2FDE

Accessibility & contrast

On white

13.19
#3B147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3B147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B147F
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B147F#FFFFFF#000000##FFFFFF
##3B147F1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#23344B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3b147f;
/* rgb */ color: rgb(59, 20, 127);
/* oklch */ color: oklch(32.9% 0.162 291.1);
Tailwind
colors: {
  custom: {
    50: '#7a58a5',
    500: '#3b147f',
    950: '#000000',
  },
}
SCSS
$custom: #3b147f;
$custom-light: #7a58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3b147f",
  "rgb": {
    "r": 59,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 261.869,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32921,
    "c": 0.16161,
    "h": 291.1
  },
  "luminance": 0.02962
}

Semantic roles & 50–950 ramp

primary
#3B147F
secondary
#88B43B
accent
#EF38AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3B147F

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

Preview Lab → · Contrast checker → · Palette generator →

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