#3A51BA#3A51BA

#3A51BA is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.9% C 0.167 H 269.7°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#3A51BA
RGBrgb(58, 81, 186)
HSLhsl(229, 52%, 48%)
HSVhsv(229, 69%, 73%)
CMYKcmyk(68.8%, 56.5%, 0%, 27.1%)
CIE-LABlab(38.43, 26.59, -58.09)
CIE-LCHlch(38.43, 63.88, 294.60°)
OKLaboklab(47.93% -0.001 -0.1672)
OKLCHoklch(47.93% 0.167 269.7)
XYZxyz(13.5473, 10.3283, 47.7245)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A51BA #BAA33A
analogous
#3A91BA #3A51BA #633ABA
triadic
#3A51BA #BA3A51 #51BA3A
tetradic
#3A51BA #BA3A91 #BAA33A #3ABA63
square
#3A51BA #BA3A91 #BAA33A #3ABA63
split-complementary
#3A51BA #BA633A #91BA3A
monochromatic
#1D285D #2B3D8B #3A51BA #6376CE #929FDD

Accessibility & contrast

On white

6.85
#3A51BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#3A51BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A51BA
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A51BA#FFFFFF#000000##FFFFFF
##3A51BA1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#0055B8
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3a51ba;
/* rgb */ color: rgb(58, 81, 186);
/* oklch */ color: oklch(47.9% 0.167 269.7);
Tailwind
colors: {
  custom: {
    50: '#8081cf',
    500: '#3a51ba',
    950: '#000000',
  },
}
SCSS
$custom: #3a51ba;
$custom-light: #8081cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a51ba",
  "rgb": {
    "r": 58,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 229.219,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.4793,
    "c": 0.16724,
    "h": 269.7
  },
  "luminance": 0.1033
}

Semantic roles & 50–950 ramp

primary
#3A51BA
secondary
#C8BC88
accent
#C24CDC
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3A51BA

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

Preview Lab → · Contrast checker → · Palette generator →

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