#3A177F#3A177F

#3A177F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.159 H 290.1°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#3A177F
RGBrgb(58, 23, 127)
HSLhsl(260, 69%, 29%)
HSVhsv(260, 82%, 50%)
CMYKcmyk(54.3%, 81.9%, 0%, 50.2%)
CIE-LABlab(20.22, 41.64, -51.90)
CIE-LCHlch(20.22, 66.54, 308.74°)
OKLaboklab(33.12% 0.0545 -0.1492)
OKLCHoklch(33.12% 0.159 290.1)
XYZxyz(5.8810, 3.0444, 20.3523)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A177F #5C7F17
analogous
#17287F #3A177F #6E177F
triadic
#3A177F #7F3A17 #177F3A
tetradic
#3A177F #7F1728 #5C7F17 #177F6E
square
#3A177F #7F1728 #5C7F17 #177F6E
split-complementary
#3A177F #7F6E17 #287F17
monochromatic
#0C051A #220E4B #3A177F #5220B3 #6D36DB

Accessibility & contrast

On white

13.05
#3A177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3A177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A177F
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A177F#FFFFFF#000000##FFFFFF
##3A177F1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#20354B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a177f;
/* rgb */ color: rgb(58, 23, 127);
/* oklch */ color: oklch(33.1% 0.159 290.1);
Tailwind
colors: {
  custom: {
    50: '#7959a5',
    500: '#3a177f',
    950: '#000000',
  },
}
SCSS
$custom: #3a177f;
$custom-light: #7959a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a177f",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 260.192,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33121,
    "c": 0.15887,
    "h": 290.1
  },
  "luminance": 0.03045
}

Semantic roles & 50–950 ramp

primary
#3A177F
secondary
#8CB43E
accent
#EC3CB1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A177F

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

Preview Lab → · Contrast checker → · Palette generator →

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