#3A71D1#3A71D1

#3A71D1 is a mid, vivid blue. Relative luminance 0.173; OKLCH L 56.2% C 0.159 H 260.7°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#3A71D1
RGBrgb(58, 113, 209)
HSLhsl(218, 62%, 52%)
HSVhsv(218, 72%, 82%)
CMYKcmyk(72.2%, 45.9%, 0%, 18%)
CIE-LABlab(48.65, 14.48, -54.87)
CIE-LCHlch(48.65, 56.75, 284.78°)
OKLaboklab(56.2% -0.0259 -0.1573)
OKLCHoklch(56.2% 0.159 260.7)
XYZxyz(19.1545, 17.3112, 62.6411)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A71D1 #D19A3A
analogous
#3ABCD1 #3A71D1 #4F3AD1
triadic
#3A71D1 #D13A71 #71D13A
tetradic
#3A71D1 #D13ABC #D19A3A #3AD14F
square
#3A71D1 #D13ABC #D19A3A #3AD14F
split-complementary
#3A71D1 #D14F3A #BCD13A
monochromatic
#1B3C75 #2756A7 #3A71D1 #6C95DD #9DB9E8

Accessibility & contrast

On white

4.71
#3A71D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#3A71D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A71D1
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A71D1#FFFFFF#000000##FFFFFF
##3A71D11.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F7BD5
Deuteranopia (green-blind)
#1D6DCF
Tritanopia (blue-blind)
#008897
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #3a71d1;
/* rgb */ color: rgb(58, 113, 209);
/* oklch */ color: oklch(56.2% 0.159 260.7);
Tailwind
colors: {
  custom: {
    50: '#8399e0',
    500: '#3a71d1',
    950: '#000000',
  },
}
SCSS
$custom: #3a71d1;
$custom-light: #8399e0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a71d1",
  "rgb": {
    "r": 58,
    "g": 113,
    "b": 209
  },
  "hsl": {
    "h": 218.146,
    "s": 62.14,
    "l": 52.353
  },
  "oklch": {
    "l": 0.56196,
    "c": 0.15939,
    "h": 260.7
  },
  "luminance": 0.17313
}

Semantic roles & 50–950 ramp

primary
#3A71D1
secondary
#D4BC93
accent
#AA43E5
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #3A71D1

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

Preview Lab → · Contrast checker → · Palette generator →

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