#3A16B4#3A16B4

#3A16B4 is a dark, highly saturated violet. Relative luminance 0.048; OKLCH L 38.9% C 0.219 H 279.3°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#3A16B4
RGBrgb(58, 22, 180)
HSLhsl(254, 78%, 40%)
HSVhsv(254, 88%, 71%)
CMYKcmyk(67.8%, 87.8%, 0%, 29.4%)
CIE-LABlab(26.06, 56.82, -74.84)
CIE-LCHlch(26.06, 93.96, 307.21°)
OKLaboklab(38.88% 0.0356 -0.216)
OKLCHoklch(38.88% 0.219 279.3)
XYZxyz(10.2674, 4.7678, 43.5504)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A16B4 #90B416
analogous
#1641B4 #3A16B4 #8916B4
triadic
#3A16B4 #B43A16 #16B43A
tetradic
#3A16B4 #B41641 #90B416 #16B489
square
#3A16B4 #B41641 #90B416 #16B489
split-complementary
#3A16B4 #B48916 #41B416
monochromatic
#170947 #280F7D #3A16B4 #4F23E4 #7B5AEB

Accessibility & contrast

On white

10.75
#3A16B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3A16B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A16B4
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A16B4#FFFFFF#000000##FFFFFF
##3A16B41.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B8
Deuteranopia (green-blind)
#0038B1
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3a16b4;
/* rgb */ color: rgb(58, 22, 180);
/* oklch */ color: oklch(38.9% 0.219 279.3);
Tailwind
colors: {
  custom: {
    50: '#835dcc',
    500: '#3a16b4',
    950: '#000000',
  },
}
SCSS
$custom: #3a16b4;
$custom-light: #835dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a16b4",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 180
  },
  "hsl": {
    "h": 253.671,
    "s": 78.218,
    "l": 39.608
  },
  "oklch": {
    "l": 0.3888,
    "c": 0.21891,
    "h": 279.3
  },
  "luminance": 0.04769
}

Semantic roles & 50–950 ramp

primary
#3A16B4
secondary
#B3CE58
accent
#F533C9
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3A16B4

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

Preview Lab → · Contrast checker → · Palette generator →

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