#3B147E#3B147E

#3B147E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.160 H 291.4°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#3B147E
RGBrgb(59, 20, 126)
HSLhsl(262, 73%, 29%)
HSVhsv(262, 84%, 49%)
CMYKcmyk(53.2%, 84.1%, 0%, 50.6%)
CIE-LABlab(19.79, 42.81, -51.98)
CIE-LCHlch(19.79, 67.34, 309.47°)
OKLaboklab(32.82% 0.0586 -0.1494)
OKLCHoklch(32.82% 0.16 291.4)
XYZxyz(5.8186, 2.9362, 19.9948)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B147E #577E14
analogous
#14227E #3B147E #70147E
triadic
#3B147E #7E3B14 #147E3B
tetradic
#3B147E #7E1422 #577E14 #147E70
square
#3B147E #7E1422 #577E14 #147E70
split-complementary
#3B147E #7E7014 #227E14
monochromatic
#0C041A #220C49 #3B147E #541CB3 #6F2EDE

Accessibility & contrast

On white

13.23
#3B147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B147E
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B147E#FFFFFF#000000##FFFFFF
##3B147E1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#23344A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3b147e;
/* rgb */ color: rgb(59, 20, 126);
/* oklch */ color: oklch(32.8% 0.160 291.4);
Tailwind
colors: {
  custom: {
    50: '#7958a4',
    500: '#3b147e',
    950: '#000000',
  },
}
SCSS
$custom: #3b147e;
$custom-light: #7958a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3b147e",
  "rgb": {
    "r": 59,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 262.075,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32817,
    "c": 0.16047,
    "h": 291.4
  },
  "luminance": 0.02936
}

Semantic roles & 50–950 ramp

primary
#3B147E
secondary
#87B33A
accent
#EF38AC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #3B147E

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

Preview Lab → · Contrast checker → · Palette generator →

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