#2F7AA8#2F7AA8

#2F7AA8 is a mid, moderate cyan. Relative luminance 0.174; OKLCH L 55.4% C 0.102 H 239.5°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#2F7AA8
RGBrgb(47, 122, 168)
HSLhsl(203, 56%, 42%)
HSVhsv(203, 72%, 66%)
CMYKcmyk(72%, 27.4%, 0%, 34.1%)
CIE-LABlab(48.70, -7.49, -31.20)
CIE-LCHlch(48.70, 32.08, 256.51°)
OKLaboklab(55.41% -0.0518 -0.088)
OKLCHoklch(55.41% 0.102 239.5)
XYZxyz(15.1970, 17.3489, 39.5859)
Luminance0.1735 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7AA8 #A85D2F
analogous
#2FA89A #2F7AA8 #2F3EA8
triadic
#2F7AA8 #A82F7A #7AA82F
tetradic
#2F7AA8 #9A2FA8 #A85D2F #3EA82F
square
#2F7AA8 #9A2FA8 #A85D2F #3EA82F
split-complementary
#2F7AA8 #A82F3E #A89A2F
monochromatic
#143548 #225778 #2F7AA8 #489ACC #78B4D9

Accessibility & contrast

On white

4.70
#2F7AA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#2F7AA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7AA8
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7AA8#FFFFFF#000000##FFFFFF
##2F7AA81.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#657AAA
Deuteranopia (green-blind)
#546EA7
Tritanopia (blue-blind)
#00868A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2f7aa8;
/* rgb */ color: rgb(47, 122, 168);
/* oklch */ color: oklch(55.4% 0.102 239.5);
Tailwind
colors: {
  custom: {
    50: '#77a0c2',
    500: '#2f7aa8',
    950: '#000000',
  },
}
SCSS
$custom: #2f7aa8;
$custom-light: #77a0c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7aa8",
  "rgb": {
    "r": 47,
    "g": 122,
    "b": 168
  },
  "hsl": {
    "h": 202.81,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.55411,
    "c": 0.10215,
    "h": 239.5
  },
  "luminance": 0.17351
}

Semantic roles & 50–950 ramp

primary
#2F7AA8
secondary
#C19071
accent
#8248E0
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0E12
muted
#7C7E81

Preview Lab

Preview with #2F7AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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