#2A71BF#2A71BF

#2A71BF is a mid, vivid cyan. Relative luminance 0.161; OKLCH L 54.5% C 0.140 H 253.6°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#2A71BF
RGBrgb(42, 113, 191)
HSLhsl(211, 64%, 46%)
HSVhsv(211, 78%, 75%)
CMYKcmyk(78%, 40.8%, 0%, 25.1%)
CIE-LABlab(47.06, 5.77, -47.13)
CIE-LCHlch(47.06, 47.49, 276.98°)
OKLaboklab(54.47% -0.0397 -0.1347)
OKLCHoklch(54.47% 0.14 253.6)
XYZxyz(16.2604, 16.0622, 51.5234)
Luminance0.1606 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A71BF #BF782A
analogous
#2ABBBF #2A71BF #2D2ABF
triadic
#2A71BF #BF2A71 #71BF2A
tetradic
#2A71BF #BF2ABB #BF782A #2ABF2D
square
#2A71BF #BF2ABB #BF782A #2ABF2D
split-complementary
#2A71BF #BF2D2A #BBBF2A
monochromatic
#14365B #1F538D #2A71BF #4E90D8 #80AFE3

Accessibility & contrast

On white

4.98
#2A71BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#2A71BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A71BF
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A71BF#FFFFFF#000000##FFFFFF
##2A71BF1.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B77C2
Deuteranopia (green-blind)
#3269BD
Tritanopia (blue-blind)
#00838F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2a71bf;
/* rgb */ color: rgb(42, 113, 191);
/* oklch */ color: oklch(54.5% 0.140 253.6);
Tailwind
colors: {
  custom: {
    50: '#7a99d3',
    500: '#2a71bf',
    950: '#000000',
  },
}
SCSS
$custom: #2a71bf;
$custom-light: #7a99d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a71bf",
  "rgb": {
    "r": 42,
    "g": 113,
    "b": 191
  },
  "hsl": {
    "h": 211.409,
    "s": 63.948,
    "l": 45.686
  },
  "oklch": {
    "l": 0.5447,
    "c": 0.14047,
    "h": 253.6
  },
  "luminance": 0.16064
}

Semantic roles & 50–950 ramp

primary
#2A71BF
secondary
#CCA479
accent
#9841E7
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #2A71BF

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

Preview Lab → · Contrast checker → · Palette generator →

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