#2F7BAA#2F7BAA

#2F7BAA is a mid, moderate cyan. Relative luminance 0.177; OKLCH L 55.8% C 0.104 H 239.8°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#2F7BAA
RGBrgb(47, 123, 170)
HSLhsl(203, 57%, 43%)
HSVhsv(203, 72%, 67%)
CMYKcmyk(72.4%, 27.6%, 0%, 33.3%)
CIE-LABlab(49.09, -7.36, -31.74)
CIE-LCHlch(49.09, 32.58, 256.94°)
OKLaboklab(55.76% -0.0522 -0.0896)
OKLCHoklch(55.76% 0.104 239.8)
XYZxyz(15.5081, 17.6708, 40.6159)
Luminance0.1767 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7BAA #AA5E2F
analogous
#2FAA9C #2F7BAA #2F3DAA
triadic
#2F7BAA #AA2F7B #7BAA2F
tetradic
#2F7BAA #9C2FAA #AA5E2F #3DAA2F
square
#2F7BAA #9C2FAA #AA5E2F #3DAA2F
split-complementary
#2F7BAA #AA2F3D #AA9C2F
monochromatic
#14364A #22587A #2F7BAA #499BCD #79B5DA

Accessibility & contrast

On white

4.63
#2F7BAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#2F7BAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7BAA
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7BAA#FFFFFF#000000##FFFFFF
##2F7BAA1.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#657BAC
Deuteranopia (green-blind)
#546FA9
Tritanopia (blue-blind)
#00878B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2f7baa;
/* rgb */ color: rgb(47, 123, 170);
/* oklch */ color: oklch(55.8% 0.104 239.8);
Tailwind
colors: {
  custom: {
    50: '#77a1c3',
    500: '#2f7baa',
    950: '#000000',
  },
}
SCSS
$custom: #2f7baa;
$custom-light: #77a1c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7baa",
  "rgb": {
    "r": 47,
    "g": 123,
    "b": 170
  },
  "hsl": {
    "h": 202.927,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.55757,
    "c": 0.10367,
    "h": 239.8
  },
  "luminance": 0.17673
}

Semantic roles & 50–950 ramp

primary
#2F7BAA
secondary
#C29172
accent
#8248E0
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E12
muted
#7C7E81

Preview Lab

Preview with #2F7BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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