#2F7BAC#2F7BAC

#2F7BAC is a mid, moderate cyan. Relative luminance 0.177; OKLCH L 55.9% C 0.106 H 240.9°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#2F7BAC
RGBrgb(47, 123, 172)
HSLhsl(204, 57%, 43%)
HSVhsv(204, 73%, 67%)
CMYKcmyk(72.7%, 28.5%, 0%, 32.5%)
CIE-LABlab(49.19, -6.65, -32.76)
CIE-LCHlch(49.19, 33.42, 258.53°)
OKLaboklab(55.86% -0.0515 -0.0925)
OKLCHoklch(55.86% 0.106 240.9)
XYZxyz(15.6988, 17.7470, 41.6199)
Luminance0.1775 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7BAC #AC602F
analogous
#2FAC9E #2F7BAC #2F3CAC
triadic
#2F7BAC #AC2F7B #7BAC2F
tetradic
#2F7BAC #9E2FAC #AC602F #3CAC2F
square
#2F7BAC #9E2FAC #AC602F #3CAC2F
split-complementary
#2F7BAC #AC2F3C #AC9E2F
monochromatic
#15364C #22597C #2F7BAC #4B9ACE #7BB5DB

Accessibility & contrast

On white

4.62
#2F7BAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#2F7BAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7BAC
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7BAC#FFFFFF#000000##FFFFFF
##2F7BAC1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#647CAE
Deuteranopia (green-blind)
#5370AB
Tritanopia (blue-blind)
#00878C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2f7bac;
/* rgb */ color: rgb(47, 123, 172);
/* oklch */ color: oklch(55.9% 0.106 240.9);
Tailwind
colors: {
  custom: {
    50: '#78a1c5',
    500: '#2f7bac',
    950: '#000000',
  },
}
SCSS
$custom: #2f7bac;
$custom-light: #78a1c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7bac",
  "rgb": {
    "r": 47,
    "g": 123,
    "b": 172
  },
  "hsl": {
    "h": 203.52,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.55861,
    "c": 0.1059,
    "h": 240.9
  },
  "luminance": 0.17749
}

Semantic roles & 50–950 ramp

primary
#2F7BAC
secondary
#C39374
accent
#8347E0
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2F7BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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