#3A71C4#3A71C4

#3A71C4 is a mid, vivid blue. Relative luminance 0.167; OKLCH L 55.3% C 0.142 H 258.5°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#3A71C4
RGBrgb(58, 113, 196)
HSLhsl(216, 54%, 50%)
HSVhsv(216, 70%, 77%)
CMYKcmyk(70.4%, 42.3%, 0%, 23.1%)
CIE-LABlab(47.87, 9.74, -48.68)
CIE-LCHlch(47.87, 49.65, 281.31°)
OKLaboklab(55.34% -0.0282 -0.1391)
OKLCHoklch(55.34% 0.142 258.5)
XYZxyz(17.6102, 16.6935, 54.5079)
Luminance0.1669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A71C4 #C48D3A
analogous
#3AB6C4 #3A71C4 #483AC4
triadic
#3A71C4 #C43A71 #71C43A
tetradic
#3A71C4 #C43AB6 #C48D3A #3AC448
square
#3A71C4 #C43AB6 #C48D3A #3AC448
split-complementary
#3A71C4 #C4483A #B6C43A
monochromatic
#1E3B66 #2C5695 #3A71C4 #6993D3 #98B5E0

Accessibility & contrast

On white

4.84
#3A71C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#3A71C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A71C4
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A71C4#FFFFFF#000000##FFFFFF
##3A71C41.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4978C7
Deuteranopia (green-blind)
#326CC2
Tritanopia (blue-blind)
#008491
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #3a71c4;
/* rgb */ color: rgb(58, 113, 196);
/* oklch */ color: oklch(55.3% 0.142 258.5);
Tailwind
colors: {
  custom: {
    50: '#8099d6',
    500: '#3a71c4',
    950: '#000000',
  },
}
SCSS
$custom: #3a71c4;
$custom-light: #8099d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a71c4",
  "rgb": {
    "r": 58,
    "g": 113,
    "b": 196
  },
  "hsl": {
    "h": 216.087,
    "s": 54.331,
    "l": 49.804
  },
  "oklch": {
    "l": 0.55344,
    "c": 0.14191,
    "h": 258.5
  },
  "luminance": 0.16695
}

Semantic roles & 50–950 ramp

primary
#3A71C4
secondary
#CCB38E
accent
#A34ADE
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #3A71C4

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

Preview Lab → · Contrast checker → · Palette generator →

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