#2F79B4#2F79B4

#2F79B4 is a mid, moderate cyan. Relative luminance 0.176; OKLCH L 55.8% C 0.117 H 246.3°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#2F79B4
RGBrgb(47, 121, 180)
HSLhsl(207, 59%, 45%)
HSVhsv(207, 74%, 71%)
CMYKcmyk(73.9%, 32.8%, 0%, 29.4%)
CIE-LABlab(48.97, -2.58, -37.73)
CIE-LCHlch(48.97, 37.82, 266.09°)
OKLaboklab(55.82% -0.0471 -0.107)
OKLCHoklch(55.82% 0.117 246.3)
XYZxyz(16.2447, 17.5725, 45.7069)
Luminance0.1757 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F79B4 #B46A2F
analogous
#2FB4AD #2F79B4 #2F36B4
triadic
#2F79B4 #B42F79 #79B42F
tetradic
#2F79B4 #AD2FB4 #B46A2F #36B42F
square
#2F79B4 #AD2FB4 #B46A2F #36B42F
split-complementary
#2F79B4 #B42F36 #B4AD2F
monochromatic
#163853 #225883 #2F79B4 #4F97D1 #80B4DE

Accessibility & contrast

On white

4.65
#2F79B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F79B4
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F79B4#FFFFFF#000000##FFFFFF
##2F79B41.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f79b4;
/* rgb */ color: rgb(47, 121, 180);
/* oklch */ color: oklch(55.8% 0.117 246.3);
Tailwind
colors: {
  custom: {
    50: '#799fcb',
    500: '#2f79b4',
    950: '#000000',
  },
}
SCSS
$custom: #2f79b4;
$custom-light: #799fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f79b4",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 180
  },
  "hsl": {
    "h": 206.617,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.5582,
    "c": 0.1169,
    "h": 246.3
  },
  "luminance": 0.17574
}

Semantic roles & 50–950 ramp

primary
#2F79B4
secondary
#C79B78
accent
#8B46E2
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2F79B4

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

Preview Lab → · Contrast checker → · Palette generator →

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