#3A71B2#3A71B2

#3A71B2 is a mid, moderate cyan. Relative luminance 0.159; OKLCH L 54.2% C 0.118 H 254.0°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#3A71B2
RGBrgb(58, 113, 178)
HSLhsl(213, 51%, 46%)
HSVhsv(213, 67%, 70%)
CMYKcmyk(67.4%, 36.5%, 0%, 30.2%)
CIE-LABlab(46.87, 3.24, -39.86)
CIE-LCHlch(46.87, 39.99, 274.64°)
OKLaboklab(54.24% -0.0324 -0.1132)
OKLCHoklch(54.24% 0.118 254)
XYZxyz(15.6830, 15.9226, 44.3577)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A71B2 #B27B3A
analogous
#3AADB2 #3A71B2 #3F3AB2
triadic
#3A71B2 #B23A71 #71B23A
tetradic
#3A71B2 #B23AAD #B27B3A #3AB23F
square
#3A71B2 #B23AAD #B27B3A #3AB23F
split-complementary
#3A71B2 #B23F3A #ADB23A
monochromatic
#1C3656 #2B5484 #3A71B2 #5F90CB #8DB0DA

Accessibility & contrast

On white

5.02
#3A71B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#3A71B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A71B2
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A71B2#FFFFFF#000000##FFFFFF
##3A71B21.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5475B5
Deuteranopia (green-blind)
#436AB1
Tritanopia (blue-blind)
#008089
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3a71b2;
/* rgb */ color: rgb(58, 113, 178);
/* oklch */ color: oklch(54.2% 0.118 254.0);
Tailwind
colors: {
  custom: {
    50: '#7d99c9',
    500: '#3a71b2',
    950: '#000000',
  },
}
SCSS
$custom: #3a71b2;
$custom-light: #7d99c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a71b2",
  "rgb": {
    "r": 58,
    "g": 113,
    "b": 178
  },
  "hsl": {
    "h": 212.5,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.54243,
    "c": 0.11776,
    "h": 254
  },
  "luminance": 0.15924
}

Semantic roles & 50–950 ramp

primary
#3A71B2
secondary
#C4A783
accent
#9A4DDA
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #3A71B2

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

Preview Lab → · Contrast checker → · Palette generator →

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