#2A71BB#2A71BB

#2A71BB is a mid, vivid cyan. Relative luminance 0.159; OKLCH L 54.2% C 0.135 H 252.5°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#2A71BB
RGBrgb(42, 113, 187)
HSLhsl(211, 63%, 45%)
HSVhsv(211, 78%, 73%)
CMYKcmyk(77.5%, 39.6%, 0%, 26.7%)
CIE-LABlab(46.83, 4.26, -45.19)
CIE-LCHlch(46.83, 45.39, 275.39°)
OKLaboklab(54.22% -0.0406 -0.129)
OKLCHoklch(54.22% 0.135 252.5)
XYZxyz(15.8262, 15.8885, 49.2368)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A71BB #BB742A
analogous
#2AB9BB #2A71BB #2C2ABB
triadic
#2A71BB #BB2A71 #71BB2A
tetradic
#2A71BB #BB2AB9 #BB742A #2ABB2C
square
#2A71BB #BB2AB9 #BB742A #2ABB2C
split-complementary
#2A71BB #BB2C2A #B9BB2A
monochromatic
#143557 #1F5389 #2A71BB #4C90D7 #7DAFE2

Accessibility & contrast

On white

5.03
#2A71BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#2A71BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A71BB
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A71BB#FFFFFF#000000##FFFFFF
##2A71BB1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E76BE
Deuteranopia (green-blind)
#3669BA
Tritanopia (blue-blind)
#00838D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2a71bb;
/* rgb */ color: rgb(42, 113, 187);
/* oklch */ color: oklch(54.2% 0.135 252.5);
Tailwind
colors: {
  custom: {
    50: '#7999d0',
    500: '#2a71bb',
    950: '#000000',
  },
}
SCSS
$custom: #2a71bb;
$custom-light: #7999d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a71bb",
  "rgb": {
    "r": 42,
    "g": 113,
    "b": 187
  },
  "hsl": {
    "h": 210.621,
    "s": 63.319,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54218,
    "c": 0.13527,
    "h": 252.5
  },
  "luminance": 0.1589
}

Semantic roles & 50–950 ramp

primary
#2A71BB
secondary
#CAA176
accent
#9641E6
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0D14
muted
#7C7E82

Preview Lab

Preview with #2A71BB

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

Preview Lab → · Contrast checker → · Palette generator →

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