#2F79B6#2F79B6

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

Color values

HEX#2F79B6
RGBrgb(47, 121, 182)
HSLhsl(207, 59%, 45%)
HSVhsv(207, 74%, 71%)
CMYKcmyk(74.2%, 33.5%, 0%, 28.6%)
CIE-LABlab(49.07, -1.85, -38.73)
CIE-LCHlch(49.07, 38.77, 267.26°)
OKLaboklab(55.93% -0.0465 -0.1099)
OKLCHoklch(55.93% 0.119 247.1)
XYZxyz(16.4499, 17.6546, 46.7876)
Luminance0.1766 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F79B6 #B66C2F
analogous
#2FB6AF #2F79B6 #2F36B6
triadic
#2F79B6 #B62F79 #79B62F
tetradic
#2F79B6 #AF2FB6 #B66C2F #36B62F
square
#2F79B6 #AF2FB6 #B66C2F #36B62F
split-complementary
#2F79B6 #B62F36 #B6AF2F
monochromatic
#163855 #225985 #2F79B6 #5097D2 #81B4DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F79B6#FFFFFF#000000##FFFFFF
##2F79B61.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)
#5D7CB9
Deuteranopia (green-blind)
#4A6FB5
Tritanopia (blue-blind)
#00888F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2f79b6;
/* rgb */ color: rgb(47, 121, 182);
/* oklch */ color: oklch(55.9% 0.119 247.1);
Tailwind
colors: {
  custom: {
    50: '#7a9fcc',
    500: '#2f79b6',
    950: '#000000',
  },
}
SCSS
$custom: #2f79b6;
$custom-light: #7a9fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f79b6",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 182
  },
  "hsl": {
    "h": 207.111,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55932,
    "c": 0.11934,
    "h": 247.1
  },
  "luminance": 0.17656
}

Semantic roles & 50–950 ramp

primary
#2F79B6
secondary
#C79D79
accent
#8C46E2
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2F79B6

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

Preview Lab → · Contrast checker → · Palette generator →

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