#2771A2#2771A2

#2771A2 is a mid, moderate cyan. Relative luminance 0.148; OKLCH L 52.7% C 0.105 H 242.0°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#2771A2
RGBrgb(39, 113, 162)
HSLhsl(204, 61%, 39%)
HSVhsv(204, 76%, 64%)
CMYKcmyk(75.9%, 30.2%, 0%, 36.5%)
CIE-LABlab(45.43, -5.44, -32.83)
CIE-LCHlch(45.43, 33.27, 260.59°)
OKLaboklab(52.66% -0.0493 -0.0929)
OKLCHoklch(52.66% 0.105 242)
XYZxyz(13.2609, 14.8487, 36.3426)
Luminance0.1485 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2771A2 #A25827
analogous
#27A295 #2771A2 #2734A2
triadic
#2771A2 #A22771 #71A227
tetradic
#2771A2 #9527A2 #A25827 #34A227
square
#2771A2 #9527A2 #A25827 #34A227
split-complementary
#2771A2 #A22734 #A29527
monochromatic
#0F2C3F #1B4F71 #2771A2 #3793CF #69ADDB

Accessibility & contrast

On white

5.29
#2771A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#2771A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2771A2
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2771A2#FFFFFF#000000##FFFFFF
##2771A21.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A72A4
Deuteranopia (green-blind)
#4966A1
Tritanopia (blue-blind)
#007D82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2771a2;
/* rgb */ color: rgb(39, 113, 162);
/* oklch */ color: oklch(52.7% 0.105 242.0);
Tailwind
colors: {
  custom: {
    50: '#7399be',
    500: '#2771a2',
    950: '#000000',
  },
}
SCSS
$custom: #2771a2;
$custom-light: #7399be;
$custom-dark: #000000;
JSON
{
  "hex": "#2771a2",
  "rgb": {
    "r": 39,
    "g": 113,
    "b": 162
  },
  "hsl": {
    "h": 203.902,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.52662,
    "c": 0.10518,
    "h": 242
  },
  "luminance": 0.1485
}

Semantic roles & 50–950 ramp

primary
#2771A2
secondary
#C18964
accent
#8443E4
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2771A2

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

Preview Lab → · Contrast checker → · Palette generator →

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