#3A148A#3A148A

#3A148A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 34.0% C 0.174 H 287.5°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#3A148A
RGBrgb(58, 20, 138)
HSLhsl(259, 75%, 31%)
HSVhsv(259, 86%, 54%)
CMYKcmyk(58%, 85.5%, 0%, 45.9%)
CIE-LABlab(20.96, 46.01, -57.62)
CIE-LCHlch(20.96, 73.74, 308.61°)
OKLaboklab(33.98% 0.0524 -0.1659)
OKLCHoklch(33.98% 0.174 287.5)
XYZxyz(6.5812, 3.2345, 24.3174)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A148A #648A14
analogous
#14298A #3A148A #75148A
triadic
#3A148A #8A3A14 #148A3A
tetradic
#3A148A #8A1429 #648A14 #148A75
square
#3A148A #8A1429 #648A14 #148A75
split-complementary
#3A148A #8A7514 #298A14
monochromatic
#0D051F #240C55 #3A148A #501CBF #6E36E2

Accessibility & contrast

On white

12.75
#3A148A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3A148A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A148A
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A148A#FFFFFF#000000##FFFFFF
##3A148A1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#143951
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3a148a;
/* rgb */ color: rgb(58, 20, 138);
/* oklch */ color: oklch(34.0% 0.174 287.5);
Tailwind
colors: {
  custom: {
    50: '#7b59ad',
    500: '#3a148a',
    950: '#000000',
  },
}
SCSS
$custom: #3a148a;
$custom-light: #7b59ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3a148a",
  "rgb": {
    "r": 58,
    "g": 20,
    "b": 138
  },
  "hsl": {
    "h": 259.322,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33983,
    "c": 0.17398,
    "h": 287.5
  },
  "luminance": 0.03235
}

Semantic roles & 50–950 ramp

primary
#3A148A
secondary
#94BE3C
accent
#F136B5
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A148A

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

Preview Lab → · Contrast checker → · Palette generator →

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