#2A71B7#2A71B7

#2A71B7 is a mid, vivid cyan. Relative luminance 0.157; OKLCH L 54.0% C 0.130 H 251.3°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#2A71B7
RGBrgb(42, 113, 183)
HSLhsl(210, 63%, 44%)
HSVhsv(210, 77%, 72%)
CMYKcmyk(77%, 38.3%, 0%, 28.2%)
CIE-LABlab(46.60, 2.76, -43.23)
CIE-LCHlch(46.60, 43.31, 273.65°)
OKLaboklab(53.97% -0.0416 -0.1233)
OKLCHoklch(53.97% 0.13 251.3)
XYZxyz(15.4040, 15.7196, 47.0129)
Luminance0.1572 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A71B7 #B7702A
analogous
#2AB7B7 #2A71B7 #2A2BB7
triadic
#2A71B7 #B72A71 #71B72A
tetradic
#2A71B7 #B72AB7 #B7702A #2BB72A
square
#2A71B7 #B72AB7 #B7702A #2BB72A
split-complementary
#2A71B7 #B72A2B #B7B72A
monochromatic
#133453 #1F5285 #2A71B7 #4990D5 #7BAEE1

Accessibility & contrast

On white

5.07
#2A71B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#2A71B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A71B7
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A71B7#FFFFFF#000000##FFFFFF
##2A71B71.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5075BA
Deuteranopia (green-blind)
#3A69B6
Tritanopia (blue-blind)
#00828B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a71b7;
/* rgb */ color: rgb(42, 113, 183);
/* oklch */ color: oklch(54.0% 0.130 251.3);
Tailwind
colors: {
  custom: {
    50: '#7899cd',
    500: '#2a71b7',
    950: '#000000',
  },
}
SCSS
$custom: #2a71b7;
$custom-light: #7899cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a71b7",
  "rgb": {
    "r": 42,
    "g": 113,
    "b": 183
  },
  "hsl": {
    "h": 209.787,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.5397,
    "c": 0.13011,
    "h": 251.3
  },
  "luminance": 0.15721
}

Semantic roles & 50–950 ramp

primary
#2A71B7
secondary
#C99E74
accent
#9342E6
background
#F7F9FC
surface
#EEF2F9
border
#C9CCD2
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2A71B7

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

Preview Lab → · Contrast checker → · Palette generator →

#2A71B7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva