#3A156A#3A156A

#3A156A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.136 H 297.4°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#3A156A
RGBrgb(58, 21, 106)
HSLhsl(266, 67%, 25%)
HSVhsv(266, 80%, 42%)
CMYKcmyk(45.3%, 80.2%, 0%, 58.4%)
CIE-LABlab(17.81, 36.66, -42.33)
CIE-LCHlch(17.81, 56.00, 310.89°)
OKLaboklab(30.81% 0.0628 -0.1212)
OKLCHoklch(30.81% 0.136 297.4)
XYZxyz(4.6139, 2.4764, 13.8678)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A156A #456A15
analogous
#151A6A #3A156A #65156A
triadic
#3A156A #6A3A15 #156A3A
tetradic
#3A156A #6A151A #456A15 #156A65
square
#3A156A #6A151A #456A15 #156A65
split-complementary
#3A156A #6A6515 #1A6A15
monochromatic
#0E051A #1E0B37 #3A156A #561F9D #7229D0

Accessibility & contrast

On white

14.04
#3A156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#3A156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A156A
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A156A#FFFFFF#000000##FFFFFF
##3A156A1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002B68
Tritanopia (blue-blind)
#2E2C3F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a156a;
/* rgb */ color: rgb(58, 21, 106);
/* oklch */ color: oklch(30.8% 0.136 297.4);
Tailwind
colors: {
  custom: {
    50: '#765795',
    500: '#3a156a',
    950: '#000000',
  },
}
SCSS
$custom: #3a156a;
$custom-light: #765795;
$custom-dark: #000000;
JSON
{
  "hex": "#3a156a",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 266.118,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30805,
    "c": 0.13647,
    "h": 297.4
  },
  "luminance": 0.02476
}

Semantic roles & 50–950 ramp

primary
#3A156A
secondary
#74A13A
accent
#EA3E9F
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A156A

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

Preview Lab → · Contrast checker → · Palette generator →

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