#3A71C8#3A71C8

#3A71C8 is a mid, vivid blue. Relative luminance 0.169; OKLCH L 55.6% C 0.147 H 259.3°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#3A71C8
RGBrgb(58, 113, 200)
HSLhsl(217, 56%, 51%)
HSVhsv(217, 71%, 78%)
CMYKcmyk(71%, 43.5%, 0%, 21.6%)
CIE-LABlab(48.11, 11.19, -50.60)
CIE-LCHlch(48.11, 51.83, 282.47°)
OKLaboklab(55.6% -0.0274 -0.1447)
OKLCHoklch(55.6% 0.147 259.3)
XYZxyz(18.0716, 16.8780, 56.9378)
Luminance0.1688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A71C8 #C8913A
analogous
#3AB8C8 #3A71C8 #4A3AC8
triadic
#3A71C8 #C83A71 #71C83A
tetradic
#3A71C8 #C83AB8 #C8913A #3AC84A
square
#3A71C8 #C83AB8 #C8913A #3AC84A
split-complementary
#3A71C8 #C84A3A #B8C83A
monochromatic
#1E3B6A #2B569A #3A71C8 #6A93D5 #9AB6E3

Accessibility & contrast

On white

4.80
#3A71C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#3A71C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A71C8
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A71C8#FFFFFF#000000##FFFFFF
##3A71C81.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4679CB
Deuteranopia (green-blind)
#2D6CC6
Tritanopia (blue-blind)
#008593
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #3a71c8;
/* rgb */ color: rgb(58, 113, 200);
/* oklch */ color: oklch(55.6% 0.147 259.3);
Tailwind
colors: {
  custom: {
    50: '#8199d9',
    500: '#3a71c8',
    950: '#000000',
  },
}
SCSS
$custom: #3a71c8;
$custom-light: #8199d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a71c8",
  "rgb": {
    "r": 58,
    "g": 113,
    "b": 200
  },
  "hsl": {
    "h": 216.761,
    "s": 56.349,
    "l": 50.588
  },
  "oklch": {
    "l": 0.55602,
    "c": 0.1473,
    "h": 259.3
  },
  "luminance": 0.1688
}

Semantic roles & 50–950 ramp

primary
#3A71C8
secondary
#CEB68F
accent
#A548E0
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #3A71C8

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

Preview Lab → · Contrast checker → · Palette generator →

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