#3A71C7#3A71C7

#3A71C7 is a mid, vivid blue. Relative luminance 0.168; OKLCH L 55.5% C 0.146 H 259.1°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#3A71C7
RGBrgb(58, 113, 199)
HSLhsl(217, 56%, 50%)
HSVhsv(217, 71%, 78%)
CMYKcmyk(70.9%, 43.2%, 0%, 22%)
CIE-LABlab(48.05, 10.83, -50.12)
CIE-LCHlch(48.05, 51.28, 282.19°)
OKLaboklab(55.54% -0.0276 -0.1433)
OKLCHoklch(55.54% 0.146 259.1)
XYZxyz(17.9551, 16.8314, 56.3243)
Luminance0.1683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A71C7 #C7903A
analogous
#3AB7C7 #3A71C7 #4A3AC7
triadic
#3A71C7 #C73A71 #71C73A
tetradic
#3A71C7 #C73AB7 #C7903A #3AC74A
square
#3A71C7 #C73AB7 #C7903A #3AC74A
split-complementary
#3A71C7 #C74A3A #B7C73A
monochromatic
#1E3B69 #2B5698 #3A71C7 #6A93D5 #99B6E2

Accessibility & contrast

On white

4.81
#3A71C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#3A71C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A71C7
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A71C7#FFFFFF#000000##FFFFFF
##3A71C71.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4779CA
Deuteranopia (green-blind)
#2E6CC5
Tritanopia (blue-blind)
#008592
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #3a71c7;
/* rgb */ color: rgb(58, 113, 199);
/* oklch */ color: oklch(55.5% 0.146 259.1);
Tailwind
colors: {
  custom: {
    50: '#8199d8',
    500: '#3a71c7',
    950: '#000000',
  },
}
SCSS
$custom: #3a71c7;
$custom-light: #8199d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a71c7",
  "rgb": {
    "r": 58,
    "g": 113,
    "b": 199
  },
  "hsl": {
    "h": 216.596,
    "s": 55.731,
    "l": 50.392
  },
  "oklch": {
    "l": 0.55537,
    "c": 0.14595,
    "h": 259.1
  },
  "luminance": 0.16833
}

Semantic roles & 50–950 ramp

primary
#3A71C7
secondary
#CEB58F
accent
#A449DF
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #3A71C7

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

Preview Lab → · Contrast checker → · Palette generator →

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