#2F79B9#2F79B9

#2F79B9 is a mid, vivid cyan. Relative luminance 0.178; OKLCH L 56.1% C 0.123 H 248.2°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#2F79B9
RGBrgb(47, 121, 185)
HSLhsl(208, 59%, 45%)
HSVhsv(208, 75%, 73%)
CMYKcmyk(74.6%, 34.6%, 0%, 27.5%)
CIE-LABlab(49.23, -0.76, -40.21)
CIE-LCHlch(49.23, 40.22, 268.92°)
OKLaboklab(56.1% -0.0456 -0.1143)
OKLCHoklch(56.1% 0.123 248.2)
XYZxyz(16.7633, 17.7799, 48.4379)
Luminance0.1778 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F79B9 #B96F2F
analogous
#2FB9B4 #2F79B9 #2F34B9
triadic
#2F79B9 #B92F79 #79B92F
tetradic
#2F79B9 #B42FB9 #B96F2F #34B92F
square
#2F79B9 #B42FB9 #B96F2F #34B92F
split-complementary
#2F79B9 #B92F34 #B9B42F
monochromatic
#163957 #235988 #2F79B9 #5297D3 #83B5DF

Accessibility & contrast

On white

4.61
#2F79B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F79B9
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F79B9#FFFFFF#000000##FFFFFF
##2F79B91.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C7CBC
Deuteranopia (green-blind)
#486FB8
Tritanopia (blue-blind)
#008890
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2f79b9;
/* rgb */ color: rgb(47, 121, 185);
/* oklch */ color: oklch(56.1% 0.123 248.2);
Tailwind
colors: {
  custom: {
    50: '#7a9fce',
    500: '#2f79b9',
    950: '#000000',
  },
}
SCSS
$custom: #2f79b9;
$custom-light: #7a9fce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f79b9",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 185
  },
  "hsl": {
    "h": 207.826,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56103,
    "c": 0.12304,
    "h": 248.2
  },
  "luminance": 0.17782
}

Semantic roles & 50–950 ramp

primary
#2F79B9
secondary
#C99F7B
accent
#8E45E3
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0E13
muted
#7C7E82

Preview Lab

Preview with #2F79B9

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

Preview Lab → · Contrast checker → · Palette generator →

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