#2771BD#2771BD

#2771BD is a mid, vivid cyan. Relative luminance 0.159; OKLCH L 54.3% C 0.139 H 252.5°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#2771BD
RGBrgb(39, 113, 189)
HSLhsl(210, 66%, 45%)
HSVhsv(210, 79%, 74%)
CMYKcmyk(79.4%, 40.2%, 0%, 25.9%)
CIE-LABlab(46.86, 4.68, -46.30)
CIE-LCHlch(46.86, 46.53, 275.78°)
OKLaboklab(54.26% -0.0418 -0.1323)
OKLCHoklch(54.26% 0.139 252.5)
XYZxyz(15.9237, 15.9138, 50.3667)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2771BD #BD7327
analogous
#27BCBD #2771BD #2827BD
triadic
#2771BD #BD2771 #71BD27
tetradic
#2771BD #BD27BC #BD7327 #27BD28
square
#2771BD #BD27BC #BD7327 #27BD28
split-complementary
#2771BD #BD2827 #BCBD27
monochromatic
#123458 #1D538A #2771BD #4890D9 #7BAFE4

Accessibility & contrast

On white

5.02
#2771BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#2771BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2771BD
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2771BD#FFFFFF#000000##FFFFFF
##2771BD1.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)
#4C76C0
Deuteranopia (green-blind)
#3369BB
Tritanopia (blue-blind)
#00838E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2771bd;
/* rgb */ color: rgb(39, 113, 189);
/* oklch */ color: oklch(54.3% 0.139 252.5);
Tailwind
colors: {
  custom: {
    50: '#7899d1',
    500: '#2771bd',
    950: '#000000',
  },
}
SCSS
$custom: #2771bd;
$custom-light: #7899d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2771bd",
  "rgb": {
    "r": 39,
    "g": 113,
    "b": 189
  },
  "hsl": {
    "h": 210.4,
    "s": 65.789,
    "l": 44.706
  },
  "oklch": {
    "l": 0.54258,
    "c": 0.13875,
    "h": 252.5
  },
  "luminance": 0.15916
}

Semantic roles & 50–950 ramp

primary
#2771BD
secondary
#CCA074
accent
#953FE9
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0D14
muted
#7C7E82

Preview Lab

Preview with #2771BD

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

Preview Lab → · Contrast checker → · Palette generator →

#2771BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva