#2F77A6#2F77A6

#2F77A6 is a mid, moderate cyan. Relative luminance 0.166; OKLCH L 54.6% C 0.102 H 241.0°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#2F77A6
RGBrgb(47, 119, 166)
HSLhsl(204, 56%, 42%)
HSVhsv(204, 72%, 65%)
CMYKcmyk(71.7%, 28.3%, 0%, 34.9%)
CIE-LABlab(47.69, -6.43, -31.61)
CIE-LCHlch(47.69, 32.26, 258.49°)
OKLaboklab(54.58% -0.0495 -0.0892)
OKLCHoklch(54.58% 0.102 241)
XYZxyz(14.6494, 16.5495, 38.4913)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F77A6 #A65E2F
analogous
#2FA69A #2F77A6 #2F3CA6
triadic
#2F77A6 #A62F77 #77A62F
tetradic
#2F77A6 #9A2FA6 #A65E2F #3CA62F
square
#2F77A6 #9A2FA6 #A65E2F #3CA62F
split-complementary
#2F77A6 #A62F3C #A69A2F
monochromatic
#143347 #215576 #2F77A6 #4797CB #77B2D8

Accessibility & contrast

On white

4.87
#2F77A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#2F77A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F77A6
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F77A6#FFFFFF#000000##FFFFFF
##2F77A61.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6177A8
Deuteranopia (green-blind)
#516CA5
Tritanopia (blue-blind)
#008387
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2f77a6;
/* rgb */ color: rgb(47, 119, 166);
/* oklch */ color: oklch(54.6% 0.102 241.0);
Tailwind
colors: {
  custom: {
    50: '#779ec0',
    500: '#2f77a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f77a6;
$custom-light: #779ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f77a6",
  "rgb": {
    "r": 47,
    "g": 119,
    "b": 166
  },
  "hsl": {
    "h": 203.697,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.5458,
    "c": 0.10203,
    "h": 241
  },
  "luminance": 0.16551
}

Semantic roles & 50–950 ramp

primary
#2F77A6
secondary
#C19070
accent
#8449DF
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0E12
muted
#7C7E81

Preview Lab

Preview with #2F77A6

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

Preview Lab → · Contrast checker → · Palette generator →

#2F77A6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva