#3A187A#3A187A

#3A187A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.152 H 291.4°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#3A187A
RGBrgb(58, 24, 122)
HSLhsl(261, 67%, 29%)
HSVhsv(261, 80%, 48%)
CMYKcmyk(52.5%, 80.3%, 0%, 52.2%)
CIE-LABlab(19.87, 39.74, -49.29)
CIE-LCHlch(19.87, 63.31, 308.88°)
OKLaboklab(32.73% 0.0554 -0.1416)
OKLCHoklch(32.73% 0.152 291.4)
XYZxyz(5.5834, 2.9577, 18.6853)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A187A #587A18
analogous
#18277A #3A187A #6B187A
triadic
#3A187A #7A3A18 #187A3A
tetradic
#3A187A #7A1827 #587A18 #187A6B
square
#3A187A #7A1827 #587A18 #187A6B
split-complementary
#3A187A #7A6B18 #277A18
monochromatic
#0C051A #220E47 #3A187A #5222AD #6D35D7

Accessibility & contrast

On white

13.19
#3A187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A187A
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A187A#FFFFFF#000000##FFFFFF
##3A187A1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#243448
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a187a;
/* rgb */ color: rgb(58, 24, 122);
/* oklch */ color: oklch(32.7% 0.152 291.4);
Tailwind
colors: {
  custom: {
    50: '#7859a1',
    500: '#3a187a',
    950: '#000000',
  },
}
SCSS
$custom: #3a187a;
$custom-light: #7859a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a187a",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 260.816,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32726,
    "c": 0.15203,
    "h": 291.4
  },
  "luminance": 0.02958
}

Semantic roles & 50–950 ramp

primary
#3A187A
secondary
#88AF3F
accent
#EA3EAE
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A187A

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

Preview Lab → · Contrast checker → · Palette generator →

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