#2F77B5#2F77B5

#2F77B5 is a mid, moderate cyan. Relative luminance 0.171; OKLCH L 55.4% C 0.120 H 248.0°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#2F77B5
RGBrgb(47, 119, 181)
HSLhsl(208, 59%, 45%)
HSVhsv(208, 74%, 71%)
CMYKcmyk(74%, 34.3%, 0%, 29%)
CIE-LABlab(48.43, -1.01, -39.17)
CIE-LCHlch(48.43, 39.18, 268.52°)
OKLaboklab(55.41% -0.0449 -0.1112)
OKLCHoklch(55.41% 0.12 248)
XYZxyz(16.1064, 17.1324, 46.1651)
Luminance0.1713 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F77B5 #B56D2F
analogous
#2FB5B0 #2F77B5 #2F34B5
triadic
#2F77B5 #B52F77 #77B52F
tetradic
#2F77B5 #B02FB5 #B56D2F #34B52F
square
#2F77B5 #B02FB5 #B56D2F #34B52F
split-complementary
#2F77B5 #B52F34 #B5B02F
monochromatic
#163754 #225784 #2F77B5 #5095D1 #80B3DE

Accessibility & contrast

On white

4.74
#2F77B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#2F77B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F77B5
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F77B5#FFFFFF#000000##FFFFFF
##2F77B51.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B7AB8
Deuteranopia (green-blind)
#476DB4
Tritanopia (blue-blind)
#00868D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2f77b5;
/* rgb */ color: rgb(47, 119, 181);
/* oklch */ color: oklch(55.4% 0.120 248.0);
Tailwind
colors: {
  custom: {
    50: '#799dcb',
    500: '#2f77b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f77b5;
$custom-light: #799dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f77b5",
  "rgb": {
    "r": 47,
    "g": 119,
    "b": 181
  },
  "hsl": {
    "h": 207.761,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55406,
    "c": 0.11995,
    "h": 248
  },
  "luminance": 0.17134
}

Semantic roles & 50–950 ramp

primary
#2F77B5
secondary
#C79D79
accent
#8E46E2
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2F77B5

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

Preview Lab → · Contrast checker → · Palette generator →

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