#3A146A#3A146A

#3A146A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.138 H 297.6°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#3A146A
RGBrgb(58, 20, 106)
HSLhsl(267, 68%, 25%)
HSVhsv(267, 81%, 42%)
CMYKcmyk(45.3%, 81.1%, 0%, 58.4%)
CIE-LABlab(17.65, 37.13, -42.60)
CIE-LCHlch(17.65, 56.51, 311.07°)
OKLaboklab(30.69% 0.0637 -0.1219)
OKLCHoklch(30.69% 0.138 297.6)
XYZxyz(4.5959, 2.4404, 13.8618)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A146A #446A14
analogous
#14196A #3A146A #65146A
triadic
#3A146A #6A3A14 #146A3A
tetradic
#3A146A #6A1419 #446A14 #146A65
square
#3A146A #6A1419 #446A14 #146A65
split-complementary
#3A146A #6A6514 #196A14
monochromatic
#0E051A #1E0A37 #3A146A #561E9D #7227D1

Accessibility & contrast

On white

14.11
#3A146A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#3A146A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A146A
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A146A#FFFFFF#000000##FFFFFF
##3A146A1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002A68
Tritanopia (blue-blind)
#2E2B3E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3a146a;
/* rgb */ color: rgb(58, 20, 106);
/* oklch */ color: oklch(30.7% 0.138 297.6);
Tailwind
colors: {
  custom: {
    50: '#765695',
    500: '#3a146a',
    950: '#000000',
  },
}
SCSS
$custom: #3a146a;
$custom-light: #765695;
$custom-dark: #000000;
JSON
{
  "hex": "#3a146a",
  "rgb": {
    "r": 58,
    "g": 20,
    "b": 106
  },
  "hsl": {
    "h": 266.512,
    "s": 68.254,
    "l": 24.706
  },
  "oklch": {
    "l": 0.3069,
    "c": 0.13759,
    "h": 297.6
  },
  "luminance": 0.0244
}

Semantic roles & 50–950 ramp

primary
#3A146A
secondary
#73A139
accent
#EB3D9E
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A146A

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

Preview Lab → · Contrast checker → · Palette generator →

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