#2A71B4#2A71B4

#2A71B4 is a mid, vivid cyan. Relative luminance 0.156; OKLCH L 53.8% C 0.126 H 250.4°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#2A71B4
RGBrgb(42, 113, 180)
HSLhsl(209, 62%, 44%)
HSVhsv(209, 77%, 71%)
CMYKcmyk(76.7%, 37.2%, 0%, 29.4%)
CIE-LABlab(46.44, 1.63, -41.74)
CIE-LCHlch(46.44, 41.78, 272.24°)
OKLaboklab(53.79% -0.0424 -0.1189)
OKLCHoklch(53.79% 0.126 250.4)
XYZxyz(15.0951, 15.5960, 45.3859)
Luminance0.1560 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A71B4 #B46D2A
analogous
#2AB4B2 #2A71B4 #2A2CB4
triadic
#2A71B4 #B42A71 #71B42A
tetradic
#2A71B4 #B22AB4 #B46D2A #2CB42A
square
#2A71B4 #B22AB4 #B46D2A #2CB42A
split-complementary
#2A71B4 #B42A2C #B4B22A
monochromatic
#133351 #1E5282 #2A71B4 #4790D4 #79AEE0

Accessibility & contrast

On white

5.10
#2A71B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#2A71B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A71B4
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A71B4#FFFFFF#000000##FFFFFF
##2A71B41.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5275B7
Deuteranopia (green-blind)
#3D68B3
Tritanopia (blue-blind)
#00818A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a71b4;
/* rgb */ color: rgb(42, 113, 180);
/* oklch */ color: oklch(53.8% 0.126 250.4);
Tailwind
colors: {
  custom: {
    50: '#7799cb',
    500: '#2a71b4',
    950: '#000000',
  },
}
SCSS
$custom: #2a71b4;
$custom-light: #7799cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a71b4",
  "rgb": {
    "r": 42,
    "g": 113,
    "b": 180
  },
  "hsl": {
    "h": 209.13,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.53788,
    "c": 0.12626,
    "h": 250.4
  },
  "luminance": 0.15598
}

Semantic roles & 50–950 ramp

primary
#2A71B4
secondary
#C89C72
accent
#9243E5
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2A71B4

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

Preview Lab → · Contrast checker → · Palette generator →

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