#2771BB#2771BB

#2771BB is a mid, vivid cyan. Relative luminance 0.158; OKLCH L 54.1% C 0.136 H 251.9°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#2771BB
RGBrgb(39, 113, 187)
HSLhsl(210, 65%, 44%)
HSVhsv(210, 79%, 73%)
CMYKcmyk(79.1%, 39.6%, 0%, 26.7%)
CIE-LABlab(46.75, 3.92, -45.32)
CIE-LCHlch(46.75, 45.49, 274.95°)
OKLaboklab(54.13% -0.0423 -0.1294)
OKLCHoklch(54.13% 0.136 251.9)
XYZxyz(15.7081, 15.8276, 49.2312)
Luminance0.1583 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2771BB #BB7127
analogous
#27BBBB #2771BB #2727BB
triadic
#2771BB #BB2771 #71BB27
tetradic
#2771BB #BB27BB #BB7127 #27BB27
square
#2771BB #BB27BB #BB7127 #27BB27
split-complementary
#2771BB #BB2727 #BBBB27
monochromatic
#123456 #1C5288 #2771BB #4790D9 #79AEE3

Accessibility & contrast

On white

5.04
#2771BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#2771BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2771BB
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2771BB#FFFFFF#000000##FFFFFF
##2771BB1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2771bb;
/* rgb */ color: rgb(39, 113, 187);
/* oklch */ color: oklch(54.1% 0.136 251.9);
Tailwind
colors: {
  custom: {
    50: '#7899d0',
    500: '#2771bb',
    950: '#000000',
  },
}
SCSS
$custom: #2771bb;
$custom-light: #7899d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2771bb",
  "rgb": {
    "r": 39,
    "g": 113,
    "b": 187
  },
  "hsl": {
    "h": 210,
    "s": 65.487,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54132,
    "c": 0.13617,
    "h": 251.9
  },
  "luminance": 0.15829
}

Semantic roles & 50–950 ramp

primary
#2771BB
secondary
#CB9F73
accent
#943FE8
background
#F7F9FC
surface
#EEF2F9
border
#C9CCD2
text
#0A0D14
muted
#7C7E82

Preview Lab

Preview with #2771BB

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

Preview Lab → · Contrast checker → · Palette generator →

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