#3A177D#3A177D

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

Color values

HEX#3A177D
RGBrgb(58, 23, 125)
HSLhsl(261, 69%, 29%)
HSVhsv(261, 82%, 49%)
CMYKcmyk(53.6%, 81.6%, 0%, 51%)
CIE-LABlab(20.02, 41.07, -50.97)
CIE-LCHlch(20.02, 65.46, 308.86°)
OKLaboklab(32.92% 0.0552 -0.1465)
OKLCHoklch(32.92% 0.157 290.6)
XYZxyz(5.7519, 2.9928, 19.6726)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A177D #5A7D17
analogous
#17277D #3A177D #6D177D
triadic
#3A177D #7D3A17 #177D3A
tetradic
#3A177D #7D1727 #5A7D17 #177D6D
square
#3A177D #7D1727 #5A7D17 #177D6D
split-complementary
#3A177D #7D6D17 #277D17
monochromatic
#0C051A #220D49 #3A177D #5221B1 #6D35DA

Accessibility & contrast

On white

13.14
#3A177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A177D
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A177D#FFFFFF#000000##FFFFFF
##3A177D1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#22344A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a177d;
/* rgb */ color: rgb(58, 23, 125);
/* oklch */ color: oklch(32.9% 0.157 290.6);
Tailwind
colors: {
  custom: {
    50: '#7859a4',
    500: '#3a177d',
    950: '#000000',
  },
}
SCSS
$custom: #3a177d;
$custom-light: #7859a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a177d",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 260.588,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32916,
    "c": 0.15654,
    "h": 290.6
  },
  "luminance": 0.02993
}

Semantic roles & 50–950 ramp

primary
#3A177D
secondary
#8AB23E
accent
#EC3CAF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A177D

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

Preview Lab → · Contrast checker → · Palette generator →

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