#2F79B5#2F79B5

#2F79B5 is a mid, moderate cyan. Relative luminance 0.176; OKLCH L 55.9% C 0.118 H 246.7°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#2F79B5
RGBrgb(47, 121, 181)
HSLhsl(207, 59%, 45%)
HSVhsv(207, 74%, 71%)
CMYKcmyk(74%, 33.1%, 0%, 29%)
CIE-LABlab(49.02, -2.22, -38.23)
CIE-LCHlch(49.02, 38.29, 266.68°)
OKLaboklab(55.88% -0.0468 -0.1085)
OKLCHoklch(55.88% 0.118 246.7)
XYZxyz(16.3470, 17.6134, 46.2453)
Luminance0.1762 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F79B5 #B56B2F
analogous
#2FB5AE #2F79B5 #2F36B5
triadic
#2F79B5 #B52F79 #79B52F
tetradic
#2F79B5 #AE2FB5 #B56B2F #36B52F
square
#2F79B5 #AE2FB5 #B56B2F #36B52F
split-complementary
#2F79B5 #B52F36 #B5AE2F
monochromatic
#163854 #225984 #2F79B5 #5097D1 #80B4DE

Accessibility & contrast

On white

4.64
#2F79B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#2F79B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2F79B5
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F79B5#FFFFFF#000000##FFFFFF
##2F79B51.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E7BB8
Deuteranopia (green-blind)
#4B6FB4
Tritanopia (blue-blind)
#00878F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2f79b5;
/* rgb */ color: rgb(47, 121, 181);
/* oklch */ color: oklch(55.9% 0.118 246.7);
Tailwind
colors: {
  custom: {
    50: '#799fcb',
    500: '#2f79b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f79b5;
$custom-light: #799fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f79b5",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 181
  },
  "hsl": {
    "h": 206.866,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55876,
    "c": 0.11812,
    "h": 246.7
  },
  "luminance": 0.17615
}

Semantic roles & 50–950 ramp

primary
#2F79B5
secondary
#C79C79
accent
#8C46E2
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2F79B5

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

Preview Lab → · Contrast checker → · Palette generator →

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