#2771A4#2771A4

#2771A4 is a mid, moderate cyan. Relative luminance 0.149; OKLCH L 52.8% C 0.108 H 243.1°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#2771A4
RGBrgb(39, 113, 164)
HSLhsl(204, 62%, 40%)
HSVhsv(204, 76%, 64%)
CMYKcmyk(76.2%, 31.1%, 0%, 35.7%)
CIE-LABlab(45.52, -4.70, -33.85)
CIE-LCHlch(45.52, 34.17, 262.09°)
OKLaboklab(52.77% -0.0487 -0.0959)
OKLCHoklch(52.77% 0.108 243.1)
XYZxyz(13.4401, 14.9204, 37.2863)
Luminance0.1492 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2771A4 #A45A27
analogous
#27A499 #2771A4 #2733A4
triadic
#2771A4 #A42771 #71A427
tetradic
#2771A4 #9927A4 #A45A27 #33A427
square
#2771A4 #9927A4 #A45A27 #33A427
split-complementary
#2771A4 #A42733 #A49927
monochromatic
#0F2D41 #1B4F73 #2771A4 #3892D0 #6AADDC

Accessibility & contrast

On white

5.27
#2771A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#2771A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2771A4
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2771A4#FFFFFF#000000##FFFFFF
##2771A41.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5972A6
Deuteranopia (green-blind)
#4867A3
Tritanopia (blue-blind)
#007E83
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2771a4;
/* rgb */ color: rgb(39, 113, 164);
/* oklch */ color: oklch(52.8% 0.108 243.1);
Tailwind
colors: {
  custom: {
    50: '#7399bf',
    500: '#2771a4',
    950: '#000000',
  },
}
SCSS
$custom: #2771a4;
$custom-light: #7399bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2771a4",
  "rgb": {
    "r": 39,
    "g": 113,
    "b": 164
  },
  "hsl": {
    "h": 204.48,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.52772,
    "c": 0.10753,
    "h": 243.1
  },
  "luminance": 0.14922
}

Semantic roles & 50–950 ramp

primary
#2771A4
secondary
#C28B65
accent
#8543E5
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2771A4

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

Preview Lab → · Contrast checker → · Palette generator →

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