#2B71BB#2B71BB

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

Color values

HEX#2B71BB
RGBrgb(43, 113, 187)
HSLhsl(211, 63%, 45%)
HSVhsv(211, 77%, 73%)
CMYKcmyk(77%, 39.6%, 0%, 26.7%)
CIE-LABlab(46.86, 4.38, -45.14)
CIE-LCHlch(46.86, 45.35, 275.55°)
OKLaboklab(54.25% -0.0401 -0.1289)
OKLCHoklch(54.25% 0.135 252.7)
XYZxyz(15.8677, 15.9098, 49.2387)
Luminance0.1591 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B71BB #BB752B
analogous
#2BB9BB #2B71BB #2D2BBB
triadic
#2B71BB #BB2B71 #71BB2B
tetradic
#2B71BB #BB2BB9 #BB752B #2BBB2D
square
#2B71BB #BB2BB9 #BB752B #2BBB2D
split-complementary
#2B71BB #BB2D2B #B9BB2B
monochromatic
#143557 #205389 #2B71BB #4D90D6 #7FAFE2

Accessibility & contrast

On white

5.02
#2B71BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2B71BB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B71BB#FFFFFF#000000##FFFFFF
##2B71BB1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b71bb;
/* rgb */ color: rgb(43, 113, 187);
/* oklch */ color: oklch(54.2% 0.135 252.7);
Tailwind
colors: {
  custom: {
    50: '#7999d0',
    500: '#2b71bb',
    950: '#000000',
  },
}
SCSS
$custom: #2b71bb;
$custom-light: #7999d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b71bb",
  "rgb": {
    "r": 43,
    "g": 113,
    "b": 187
  },
  "hsl": {
    "h": 210.833,
    "s": 62.609,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54248,
    "c": 0.13497,
    "h": 252.7
  },
  "luminance": 0.15912
}

Semantic roles & 50–950 ramp

primary
#2B71BB
secondary
#CAA278
accent
#9642E6
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0D14
muted
#7C7E82

Preview Lab

Preview with #2B71BB

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

Preview Lab → · Contrast checker → · Palette generator →

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