#3A71C2#3A71C2

#3A71C2 is a mid, vivid blue. Relative luminance 0.166; OKLCH L 55.2% C 0.139 H 258.1°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#3A71C2
RGBrgb(58, 113, 194)
HSLhsl(216, 54%, 49%)
HSVhsv(216, 70%, 76%)
CMYKcmyk(70.1%, 41.8%, 0%, 23.9%)
CIE-LABlab(47.76, 9.01, -47.72)
CIE-LCHlch(47.76, 48.56, 280.69°)
OKLaboklab(55.22% -0.0286 -0.1362)
OKLCHoklch(55.22% 0.139 258.1)
XYZxyz(17.3841, 16.6030, 53.3170)
Luminance0.1661 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A71C2 #C28B3A
analogous
#3AB5C2 #3A71C2 #473AC2
triadic
#3A71C2 #C23A71 #71C23A
tetradic
#3A71C2 #C23AB5 #C28B3A #3AC247
square
#3A71C2 #C23AB5 #C28B3A #3AC247
split-complementary
#3A71C2 #C2473A #B5C23A
monochromatic
#1E3A64 #2C5693 #3A71C2 #6792D2 #97B4E0

Accessibility & contrast

On white

4.86
#3A71C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#3A71C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A71C2
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A71C2#FFFFFF#000000##FFFFFF
##3A71C21.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B78C5
Deuteranopia (green-blind)
#346BC0
Tritanopia (blue-blind)
#008490
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #3a71c2;
/* rgb */ color: rgb(58, 113, 194);
/* oklch */ color: oklch(55.2% 0.139 258.1);
Tailwind
colors: {
  custom: {
    50: '#8099d5',
    500: '#3a71c2',
    950: '#000000',
  },
}
SCSS
$custom: #3a71c2;
$custom-light: #8099d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a71c2",
  "rgb": {
    "r": 58,
    "g": 113,
    "b": 194
  },
  "hsl": {
    "h": 215.735,
    "s": 53.968,
    "l": 49.412
  },
  "oklch": {
    "l": 0.55218,
    "c": 0.13922,
    "h": 258.1
  },
  "luminance": 0.16605
}

Semantic roles & 50–950 ramp

primary
#3A71C2
secondary
#CBB28D
accent
#A24ADD
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #3A71C2

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

Preview Lab → · Contrast checker → · Palette generator →

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