#3B147D#3B147D

#3B147D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.159 H 291.7°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#3B147D
RGBrgb(59, 20, 125)
HSLhsl(262, 72%, 28%)
HSVhsv(262, 84%, 49%)
CMYKcmyk(52.8%, 84%, 0%, 51%)
CIE-LABlab(19.68, 42.53, -51.51)
CIE-LCHlch(19.68, 66.80, 309.54°)
OKLaboklab(32.71% 0.059 -0.148)
OKLCHoklch(32.71% 0.159 291.7)
XYZxyz(5.7544, 2.9106, 19.6567)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B147D #567D14
analogous
#14217D #3B147D #6F147D
triadic
#3B147D #7D3B14 #147D3B
tetradic
#3B147D #7D1421 #567D14 #147D6F
square
#3B147D #7D1421 #567D14 #147D6F
split-complementary
#3B147D #7D6F14 #217D14
monochromatic
#0C041A #220C48 #3B147D #541CB2 #6F2EDE

Accessibility & contrast

On white

13.27
#3B147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3B147D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B147D
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B147D#FFFFFF#000000##FFFFFF
##3B147D1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#243349
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3b147d;
/* rgb */ color: rgb(59, 20, 125);
/* oklch */ color: oklch(32.7% 0.159 291.7);
Tailwind
colors: {
  custom: {
    50: '#7958a4',
    500: '#3b147d',
    950: '#000000',
  },
}
SCSS
$custom: #3b147d;
$custom-light: #7958a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3b147d",
  "rgb": {
    "r": 59,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 262.286,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32713,
    "c": 0.15935,
    "h": 291.7
  },
  "luminance": 0.02911
}

Semantic roles & 50–950 ramp

primary
#3B147D
secondary
#86B23A
accent
#EF39AB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #3B147D

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

Preview Lab → · Contrast checker → · Palette generator →

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