#3A51BD#3A51BD

#3A51BD is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.2% C 0.171 H 269.7°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#3A51BD
RGBrgb(58, 81, 189)
HSLhsl(229, 53%, 48%)
HSVhsv(229, 69%, 74%)
CMYKcmyk(69.3%, 57.1%, 0%, 25.9%)
CIE-LABlab(38.65, 27.67, -59.48)
CIE-LCHlch(38.65, 65.60, 294.95°)
OKLaboklab(48.17% -0.0009 -0.1713)
OKLCHoklch(48.17% 0.171 269.7)
XYZxyz(13.8695, 10.4572, 49.4217)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A51BD #BDA63A
analogous
#3A92BD #3A51BD #653ABD
triadic
#3A51BD #BD3A51 #51BD3A
tetradic
#3A51BD #BD3A92 #BDA63A #3ABD65
square
#3A51BD #BD3A92 #BDA63A #3ABD65
split-complementary
#3A51BD #BD653A #92BD3A
monochromatic
#1D295F #2C3D8E #3A51BD #6577D0 #93A1DE

Accessibility & contrast

On white

6.79
#3A51BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#3A51BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A51BD
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A51BD#FFFFFF#000000##FFFFFF
##3A51BD1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#0055BB
Tritanopia (blue-blind)
#006B7F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3a51bd;
/* rgb */ color: rgb(58, 81, 189);
/* oklch */ color: oklch(48.2% 0.171 269.7);
Tailwind
colors: {
  custom: {
    50: '#8081d2',
    500: '#3a51bd',
    950: '#000000',
  },
}
SCSS
$custom: #3a51bd;
$custom-light: #8081d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a51bd",
  "rgb": {
    "r": 58,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 229.466,
    "s": 53.036,
    "l": 48.431
  },
  "oklch": {
    "l": 0.4817,
    "c": 0.17133,
    "h": 269.7
  },
  "luminance": 0.10459
}

Semantic roles & 50–950 ramp

primary
#3A51BD
secondary
#C9BE8A
accent
#C34BDC
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3A51BD

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

Preview Lab → · Contrast checker → · Palette generator →

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