#3A146B#3A146B

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

Color values

HEX#3A146B
RGBrgb(58, 20, 107)
HSLhsl(266, 69%, 25%)
HSVhsv(266, 81%, 42%)
CMYKcmyk(45.8%, 81.3%, 0%, 58%)
CIE-LABlab(17.74, 37.40, -43.10)
CIE-LCHlch(17.74, 57.06, 310.95°)
OKLaboklab(30.79% 0.0634 -0.1234)
OKLCHoklch(30.79% 0.139 297.2)
XYZxyz(4.6482, 2.4613, 14.1372)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A146B #456B14
analogous
#14196B #3A146B #66146B
triadic
#3A146B #6B3A14 #146B3A
tetradic
#3A146B #6B1419 #456B14 #146B66
square
#3A146B #6B1419 #456B14 #146B66
split-complementary
#3A146B #6B6614 #196B14
monochromatic
#0E051A #1E0A37 #3A146B #561E9F #7227D2

Accessibility & contrast

On white

14.07
#3A146B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A146B
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A146B#FFFFFF#000000##FFFFFF
##3A146B1.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6D
Deuteranopia (green-blind)
#002A69
Tritanopia (blue-blind)
#2D2C3F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3a146b;
/* rgb */ color: rgb(58, 20, 107);
/* oklch */ color: oklch(30.8% 0.139 297.2);
Tailwind
colors: {
  custom: {
    50: '#765696',
    500: '#3a146b',
    950: '#000000',
  },
}
SCSS
$custom: #3a146b;
$custom-light: #765696;
$custom-dark: #000000;
JSON
{
  "hex": "#3a146b",
  "rgb": {
    "r": 58,
    "g": 20,
    "b": 107
  },
  "hsl": {
    "h": 266.207,
    "s": 68.504,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30787,
    "c": 0.13875,
    "h": 297.2
  },
  "luminance": 0.02461
}

Semantic roles & 50–950 ramp

primary
#3A146B
secondary
#74A239
accent
#EB3C9F
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A146B

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

Preview Lab → · Contrast checker → · Palette generator →

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