#2F7AB4#2F7AB4

#2F7AB4 is a mid, moderate cyan. Relative luminance 0.178; OKLCH L 56.1% C 0.116 H 245.5°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#2F7AB4
RGBrgb(47, 122, 180)
HSLhsl(206, 59%, 45%)
HSVhsv(206, 74%, 71%)
CMYKcmyk(73.9%, 32.2%, 0%, 29.4%)
CIE-LABlab(49.27, -3.18, -37.26)
CIE-LCHlch(49.27, 37.39, 265.12°)
OKLaboklab(56.06% -0.048 -0.1056)
OKLCHoklch(56.06% 0.116 245.5)
XYZxyz(16.3669, 17.8168, 45.7476)
Luminance0.1782 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7AB4 #B4692F
analogous
#2FB4AB #2F7AB4 #2F38B4
triadic
#2F7AB4 #B42F7A #7AB42F
tetradic
#2F7AB4 #AB2FB4 #B4692F #38B42F
square
#2F7AB4 #AB2FB4 #B4692F #38B42F
split-complementary
#2F7AB4 #B42F38 #B4AB2F
monochromatic
#163853 #225983 #2F7AB4 #4F98D1 #80B5DE

Accessibility & contrast

On white

4.60
#2F7AB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#2F7AB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7AB4
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7AB4#FFFFFF#000000##FFFFFF
##2F7AB41.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F7CB7
Deuteranopia (green-blind)
#4D6FB3
Tritanopia (blue-blind)
#00888F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2f7ab4;
/* rgb */ color: rgb(47, 122, 180);
/* oklch */ color: oklch(56.1% 0.116 245.5);
Tailwind
colors: {
  custom: {
    50: '#79a0ca',
    500: '#2f7ab4',
    950: '#000000',
  },
}
SCSS
$custom: #2f7ab4;
$custom-light: #79a0ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7ab4",
  "rgb": {
    "r": 47,
    "g": 122,
    "b": 180
  },
  "hsl": {
    "h": 206.165,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.56056,
    "c": 0.11603,
    "h": 245.5
  },
  "luminance": 0.17819
}

Semantic roles & 50–950 ramp

primary
#2F7AB4
secondary
#C79A78
accent
#8A46E2
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2F7AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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