#3A145A#3A145A

#3A145A is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.2% C 0.119 H 304.8°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#3A145A
RGBrgb(58, 20, 90)
HSLhsl(273, 64%, 22%)
HSVhsv(273, 78%, 35%)
CMYKcmyk(35.6%, 77.8%, 0%, 64.7%)
CIE-LABlab(16.20, 32.79, -34.37)
CIE-LCHlch(16.20, 47.50, 313.66°)
OKLaboklab(29.22% 0.0678 -0.0978)
OKLCHoklch(29.22% 0.119 304.8)
XYZxyz(3.8401, 2.1381, 9.8813)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A145A #345A14
analogous
#17145A #3A145A #5A1457
triadic
#3A145A #5A3A14 #145A3A
tetradic
#3A145A #5A1714 #345A14 #14575A
square
#3A145A #5A1714 #345A14 #14575A
split-complementary
#3A145A #575A14 #145A17
monochromatic
#100619 #1A0928 #3A145A #5A1F8C #7B2ABE

Accessibility & contrast

On white

14.71
#3A145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#3A145A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A145A
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A145A#FFFFFF#000000##FFFFFF
##3A145A1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#002859
Tritanopia (blue-blind)
#342535
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3a145a;
/* rgb */ color: rgb(58, 20, 90);
/* oklch */ color: oklch(29.2% 0.119 304.8);
Tailwind
colors: {
  custom: {
    50: '#745589',
    500: '#3a145a',
    950: '#000000',
  },
}
SCSS
$custom: #3a145a;
$custom-light: #745589;
$custom-dark: #000000;
JSON
{
  "hex": "#3a145a",
  "rgb": {
    "r": 58,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 272.571,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29218,
    "c": 0.11898,
    "h": 304.8
  },
  "luminance": 0.02138
}

Semantic roles & 50–950 ramp

primary
#3A145A
secondary
#619238
accent
#E7418D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A145A

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

Preview Lab → · Contrast checker → · Palette generator →

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