#3A3AA4#3A3AA4

#3A3AA4 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.8% C 0.166 H 276.5°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#3A3AA4
RGBrgb(58, 58, 164)
HSLhsl(240, 48%, 44%)
HSVhsv(240, 65%, 64%)
CMYKcmyk(64.6%, 64.6%, 0%, 35.7%)
CIE-LABlab(30.89, 33.59, -57.28)
CIE-LCHlch(30.89, 66.40, 300.39°)
OKLaboklab(41.8% 0.0187 -0.1651)
OKLCHoklch(41.8% 0.166 276.5)
XYZxyz(9.9566, 6.6052, 35.8650)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3AA4 #A4A43A
analogous
#3A6FA4 #3A3AA4 #6F3AA4
triadic
#3A3AA4 #A43A3A #3AA43A
tetradic
#3A3AA4 #A43A6F #A4A43A #3AA46F
square
#3A3AA4 #A43A6F #A4A43A #3AA46F
split-complementary
#3A3AA4 #A46F3A #6FA43A
monochromatic
#1A1A4A #2A2A77 #3A3AA4 #5757C4 #8585D4

Accessibility & contrast

On white

9.05
#3A3AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#3A3AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3AA4
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3AA4#FFFFFF#000000##FFFFFF
##3A3AA41.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA7
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3a3aa4;
/* rgb */ color: rgb(58, 58, 164);
/* oklch */ color: oklch(41.8% 0.166 276.5);
Tailwind
colors: {
  custom: {
    50: '#7d70c0',
    500: '#3a3aa4',
    950: '#000000',
  },
}
SCSS
$custom: #3a3aa4;
$custom-light: #7d70c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3aa4",
  "rgb": {
    "r": 58,
    "g": 58,
    "b": 164
  },
  "hsl": {
    "h": 240,
    "s": 47.748,
    "l": 43.529
  },
  "oklch": {
    "l": 0.41803,
    "c": 0.16613,
    "h": 276.5
  },
  "luminance": 0.06606
}

Semantic roles & 50–950 ramp

primary
#3A3AA4
secondary
#BEBE7C
accent
#D750D7
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #3A3AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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