#2771B2#2771B2

#2771B2 is a mid, vivid cyan. Relative luminance 0.155; OKLCH L 53.6% C 0.125 H 249.1°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#2771B2
RGBrgb(39, 113, 178)
HSLhsl(208, 64%, 43%)
HSVhsv(208, 78%, 70%)
CMYKcmyk(78.1%, 36.5%, 0%, 30.2%)
CIE-LABlab(46.25, 0.52, -40.89)
CIE-LCHlch(46.25, 40.89, 270.73°)
OKLaboklab(53.58% -0.0446 -0.1164)
OKLCHoklch(53.58% 0.125 249.1)
XYZxyz(14.7746, 15.4542, 44.3151)
Luminance0.1546 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2771B2 #B26827
analogous
#27B2AE #2771B2 #272BB2
triadic
#2771B2 #B22771 #71B227
tetradic
#2771B2 #AE27B2 #B26827 #2BB227
square
#2771B2 #AE27B2 #B26827 #2BB227
split-complementary
#2771B2 #B2272B #B2AE27
monochromatic
#11314E #1C5180 #2771B2 #4190D5 #73ADE0

Accessibility & contrast

On white

5.13
#2771B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#2771B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2771B2
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2771B2#FFFFFF#000000##FFFFFF
##2771B21.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5375B5
Deuteranopia (green-blind)
#3E68B1
Tritanopia (blue-blind)
#008189
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2771b2;
/* rgb */ color: rgb(39, 113, 178);
/* oklch */ color: oklch(53.6% 0.125 249.1);
Tailwind
colors: {
  custom: {
    50: '#7699c9',
    500: '#2771b2',
    950: '#000000',
  },
}
SCSS
$custom: #2771b2;
$custom-light: #7699c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2771b2",
  "rgb": {
    "r": 39,
    "g": 113,
    "b": 178
  },
  "hsl": {
    "h": 208.058,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53581,
    "c": 0.12468,
    "h": 249.1
  },
  "luminance": 0.15456
}

Semantic roles & 50–950 ramp

primary
#2771B2
secondary
#C8976D
accent
#8F41E7
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2771B2

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

Preview Lab → · Contrast checker → · Palette generator →

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