#2F79B3#2F79B3

#2F79B3 is a mid, moderate cyan. Relative luminance 0.175; OKLCH L 55.8% C 0.116 H 245.8°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#2F79B3
RGBrgb(47, 121, 179)
HSLhsl(206, 58%, 44%)
HSVhsv(206, 74%, 70%)
CMYKcmyk(73.7%, 32.4%, 0%, 29.8%)
CIE-LABlab(48.92, -2.94, -37.23)
CIE-LCHlch(48.92, 37.34, 265.48°)
OKLaboklab(55.76% -0.0474 -0.1056)
OKLCHoklch(55.76% 0.116 245.8)
XYZxyz(16.1432, 17.5319, 45.1723)
Luminance0.1753 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F79B3 #B3692F
analogous
#2FB3AB #2F79B3 #2F37B3
triadic
#2F79B3 #B32F79 #79B32F
tetradic
#2F79B3 #AB2FB3 #B3692F #37B32F
square
#2F79B3 #AB2FB3 #B3692F #37B32F
split-complementary
#2F79B3 #B32F37 #B3AB2F
monochromatic
#163752 #225883 #2F79B3 #4F97D1 #7FB4DD

Accessibility & contrast

On white

4.66
#2F79B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#2F79B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2F79B3
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F79B3#FFFFFF#000000##FFFFFF
##2F79B31.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F7BB5
Deuteranopia (green-blind)
#4C6FB2
Tritanopia (blue-blind)
#00878E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2f79b3;
/* rgb */ color: rgb(47, 121, 179);
/* oklch */ color: oklch(55.8% 0.116 245.8);
Tailwind
colors: {
  custom: {
    50: '#799fca',
    500: '#2f79b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f79b3;
$custom-light: #799fca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f79b3",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 179
  },
  "hsl": {
    "h": 206.364,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55764,
    "c": 0.1157,
    "h": 245.8
  },
  "luminance": 0.17534
}

Semantic roles & 50–950 ramp

primary
#2F79B3
secondary
#C69A78
accent
#8A46E2
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2F79B3

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

Preview Lab → · Contrast checker → · Palette generator →

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