#3A177E#3A177E

#3A177E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.158 H 290.3°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#3A177E
RGBrgb(58, 23, 126)
HSLhsl(260, 69%, 29%)
HSVhsv(260, 82%, 49%)
CMYKcmyk(54%, 81.7%, 0%, 50.6%)
CIE-LABlab(20.12, 41.35, -51.44)
CIE-LCHlch(20.12, 66.00, 308.80°)
OKLaboklab(33.02% 0.0548 -0.1479)
OKLCHoklch(33.02% 0.158 290.3)
XYZxyz(5.8161, 3.0184, 20.0108)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A177E #5B7E17
analogous
#17287E #3A177E #6E177E
triadic
#3A177E #7E3A17 #177E3A
tetradic
#3A177E #7E1728 #5B7E17 #177E6E
square
#3A177E #7E1728 #5B7E17 #177E6E
split-complementary
#3A177E #7E6E17 #287E17
monochromatic
#0C051A #220E4A #3A177E #5220B2 #6D35DA

Accessibility & contrast

On white

13.09
#3A177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A177E
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A177E#FFFFFF#000000##FFFFFF
##3A177E1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#21354B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a177e;
/* rgb */ color: rgb(58, 23, 126);
/* oklch */ color: oklch(33.0% 0.158 290.3);
Tailwind
colors: {
  custom: {
    50: '#7959a4',
    500: '#3a177e',
    950: '#000000',
  },
}
SCSS
$custom: #3a177e;
$custom-light: #7959a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a177e",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 260.388,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33018,
    "c": 0.15771,
    "h": 290.3
  },
  "luminance": 0.03019
}

Semantic roles & 50–950 ramp

primary
#3A177E
secondary
#8BB33E
accent
#EC3CB0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A177E

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

Preview Lab → · Contrast checker → · Palette generator →

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