#3A51C5#3A51C5

#3A51C5 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.8% C 0.182 H 269.8°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#3A51C5
RGBrgb(58, 81, 197)
HSLhsl(230, 55%, 50%)
HSVhsv(230, 71%, 77%)
CMYKcmyk(70.6%, 58.9%, 0%, 22.7%)
CIE-LABlab(39.27, 30.55, -63.14)
CIE-LCHlch(39.27, 70.15, 295.82°)
OKLaboklab(48.82% -0.0007 -0.1821)
OKLCHoklch(48.82% 0.182 269.8)
XYZxyz(14.7619, 10.8141, 54.1219)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A51C5 #C5AE3A
analogous
#3A96C5 #3A51C5 #693AC5
triadic
#3A51C5 #C53A51 #51C53A
tetradic
#3A51C5 #C53A96 #C5AE3A #3AC569
square
#3A51C5 #C53A96 #C5AE3A #3AC569
split-complementary
#3A51C5 #C5693A #96C53A
monochromatic
#1E2A66 #2C3E96 #3A51C5 #697BD3 #99A5E1

Accessibility & contrast

On white

6.64
#3A51C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#3A51C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A51C5
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A51C5#FFFFFF#000000##FFFFFF
##3A51C51.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C9
Deuteranopia (green-blind)
#0056C3
Tritanopia (blue-blind)
#006E83
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3a51c5;
/* rgb */ color: rgb(58, 81, 197);
/* oklch */ color: oklch(48.8% 0.182 269.8);
Tailwind
colors: {
  custom: {
    50: '#8281d7',
    500: '#3a51c5',
    950: '#000000',
  },
}
SCSS
$custom: #3a51c5;
$custom-light: #8281d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a51c5",
  "rgb": {
    "r": 58,
    "g": 81,
    "b": 197
  },
  "hsl": {
    "h": 230.072,
    "s": 54.51,
    "l": 50
  },
  "oklch": {
    "l": 0.48822,
    "c": 0.1821,
    "h": 269.8
  },
  "luminance": 0.10816
}

Semantic roles & 50–950 ramp

primary
#3A51C5
secondary
#CDC28E
accent
#C54ADE
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3A51C5

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

Preview Lab → · Contrast checker → · Palette generator →

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