#2A71B6#2A71B6

#2A71B6 is a mid, vivid cyan. Relative luminance 0.157; OKLCH L 53.9% C 0.129 H 251.0°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#2A71B6
RGBrgb(42, 113, 182)
HSLhsl(210, 63%, 44%)
HSVhsv(210, 77%, 71%)
CMYKcmyk(76.9%, 37.9%, 0%, 28.6%)
CIE-LABlab(46.55, 2.38, -42.73)
CIE-LCHlch(46.55, 42.80, 273.19°)
OKLaboklab(53.91% -0.0419 -0.1218)
OKLCHoklch(53.91% 0.129 251)
XYZxyz(15.3003, 15.6781, 46.4667)
Luminance0.1568 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A71B6 #B66F2A
analogous
#2AB6B5 #2A71B6 #2A2BB6
triadic
#2A71B6 #B62A71 #71B62A
tetradic
#2A71B6 #B52AB6 #B66F2A #2BB62A
square
#2A71B6 #B52AB6 #B66F2A #2BB62A
split-complementary
#2A71B6 #B62A2B #B6B52A
monochromatic
#133353 #1F5284 #2A71B6 #4890D5 #7AAEE0

Accessibility & contrast

On white

5.08
#2A71B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A71B6
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A71B6#FFFFFF#000000##FFFFFF
##2A71B61.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5175B9
Deuteranopia (green-blind)
#3B68B5
Tritanopia (blue-blind)
#00818B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a71b6;
/* rgb */ color: rgb(42, 113, 182);
/* oklch */ color: oklch(53.9% 0.129 251.0);
Tailwind
colors: {
  custom: {
    50: '#7899cc',
    500: '#2a71b6',
    950: '#000000',
  },
}
SCSS
$custom: #2a71b6;
$custom-light: #7899cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a71b6",
  "rgb": {
    "r": 42,
    "g": 113,
    "b": 182
  },
  "hsl": {
    "h": 209.571,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.53909,
    "c": 0.12882,
    "h": 251
  },
  "luminance": 0.1568
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A71B6

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

Preview Lab → · Contrast checker → · Palette generator →

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