#3B178E#3B178E

#3B178E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.176 H 286.8°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#3B178E
RGBrgb(59, 23, 142)
HSLhsl(258, 72%, 32%)
HSVhsv(258, 84%, 56%)
CMYKcmyk(58.5%, 83.8%, 0%, 44.3%)
CIE-LABlab(21.93, 46.01, -58.52)
CIE-LCHlch(21.93, 74.44, 308.18°)
OKLaboklab(34.81% 0.0509 -0.1685)
OKLCHoklch(34.81% 0.176 286.8)
XYZxyz(6.9910, 3.4952, 25.8922)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B178E #6A8E17
analogous
#172F8E #3B178E #76178E
triadic
#3B178E #8E3B17 #178E3B
tetradic
#3B178E #8E172F #6A8E17 #178E76
square
#3B178E #8E172F #6A8E17 #178E76
split-complementary
#3B178E #8E7617 #2F8E17
monochromatic
#0F0625 #250E59 #3B178E #5120C3 #703FE0

Accessibility & contrast

On white

12.36
#3B178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3B178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B178E
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B178E#FFFFFF#000000##FFFFFF
##3B178E1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#123C54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3b178e;
/* rgb */ color: rgb(59, 23, 142);
/* oklch */ color: oklch(34.8% 0.176 286.8);
Tailwind
colors: {
  custom: {
    50: '#7c5ab0',
    500: '#3b178e',
    950: '#000000',
  },
}
SCSS
$custom: #3b178e;
$custom-light: #7c5ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#3b178e",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 258.151,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34805,
    "c": 0.17603,
    "h": 286.8
  },
  "luminance": 0.03496
}

Semantic roles & 50–950 ramp

primary
#3B178E
secondary
#9AC040
accent
#EF39B8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3B178E

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

Preview Lab → · Contrast checker → · Palette generator →

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