#2F79B8#2F79B8

#2F79B8 is a mid, vivid cyan. Relative luminance 0.177; OKLCH L 56.0% C 0.122 H 247.9°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#2F79B8
RGBrgb(47, 121, 184)
HSLhsl(208, 59%, 45%)
HSVhsv(208, 74%, 72%)
CMYKcmyk(74.5%, 34.2%, 0%, 27.8%)
CIE-LABlab(49.18, -1.12, -39.72)
CIE-LCHlch(49.18, 39.73, 268.38°)
OKLaboklab(56.05% -0.0459 -0.1128)
OKLCHoklch(56.05% 0.122 247.9)
XYZxyz(16.6581, 17.7379, 47.8839)
Luminance0.1774 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F79B8 #B86E2F
analogous
#2FB8B2 #2F79B8 #2F35B8
triadic
#2F79B8 #B82F79 #79B82F
tetradic
#2F79B8 #B22FB8 #B86E2F #35B82F
square
#2F79B8 #B22FB8 #B86E2F #35B82F
split-complementary
#2F79B8 #B82F35 #B8B22F
monochromatic
#163957 #235987 #2F79B8 #5297D3 #82B4DF

Accessibility & contrast

On white

4.62
#2F79B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#2F79B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2F79B8
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F79B8#FFFFFF#000000##FFFFFF
##2F79B81.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C7CBB
Deuteranopia (green-blind)
#496FB7
Tritanopia (blue-blind)
#008890
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2f79b8;
/* rgb */ color: rgb(47, 121, 184);
/* oklch */ color: oklch(56.0% 0.122 247.9);
Tailwind
colors: {
  custom: {
    50: '#7a9fcd',
    500: '#2f79b8',
    950: '#000000',
  },
}
SCSS
$custom: #2f79b8;
$custom-light: #7a9fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f79b8",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 184
  },
  "hsl": {
    "h": 207.591,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.56046,
    "c": 0.12181,
    "h": 247.9
  },
  "luminance": 0.1774
}

Semantic roles & 50–950 ramp

primary
#2F79B8
secondary
#C89E7B
accent
#8E45E2
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2F79B8

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

Preview Lab → · Contrast checker → · Palette generator →

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