#2F79BA#2F79BA

#2F79BA is a mid, vivid cyan. Relative luminance 0.178; OKLCH L 56.2% C 0.124 H 248.6°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#2F79BA
RGBrgb(47, 121, 186)
HSLhsl(208, 60%, 46%)
HSVhsv(208, 75%, 73%)
CMYKcmyk(74.7%, 34.9%, 0%, 27.1%)
CIE-LABlab(49.28, -0.39, -40.71)
CIE-LCHlch(49.28, 40.71, 269.45°)
OKLaboklab(56.16% -0.0453 -0.1157)
OKLCHoklch(56.16% 0.124 248.6)
XYZxyz(16.8692, 17.8223, 48.9958)
Luminance0.1782 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F79BA #BA702F
analogous
#2FBAB6 #2F79BA #2F33BA
triadic
#2F79BA #BA2F79 #79BA2F
tetradic
#2F79BA #B62FBA #BA702F #33BA2F
square
#2F79BA #B62FBA #BA702F #33BA2F
split-complementary
#2F79BA #BA2F33 #BAB62F
monochromatic
#163958 #235989 #2F79BA #5397D3 #84B5E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F79BA#FFFFFF#000000##FFFFFF
##2F79BA1.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)
#5B7CBD
Deuteranopia (green-blind)
#476FB9
Tritanopia (blue-blind)
#008991
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2f79ba;
/* rgb */ color: rgb(47, 121, 186);
/* oklch */ color: oklch(56.2% 0.124 248.6);
Tailwind
colors: {
  custom: {
    50: '#7a9fcf',
    500: '#2f79ba',
    950: '#000000',
  },
}
SCSS
$custom: #2f79ba;
$custom-light: #7a9fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f79ba",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 186
  },
  "hsl": {
    "h": 208.058,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56161,
    "c": 0.12429,
    "h": 248.6
  },
  "luminance": 0.17824
}

Semantic roles & 50–950 ramp

primary
#2F79BA
secondary
#C9A07C
accent
#8F45E3
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0E14
muted
#7C7E82

Preview Lab

Preview with #2F79BA

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

Preview Lab → · Contrast checker → · Palette generator →

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