#2F79B2#2F79B2

#2F79B2 is a mid, moderate cyan. Relative luminance 0.175; OKLCH L 55.7% C 0.115 H 245.4°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#2F79B2
RGBrgb(47, 121, 178)
HSLhsl(206, 58%, 44%)
HSVhsv(206, 74%, 70%)
CMYKcmyk(73.6%, 32%, 0%, 30.2%)
CIE-LABlab(48.87, -3.31, -36.73)
CIE-LCHlch(48.87, 36.88, 264.86°)
OKLaboklab(55.71% -0.0477 -0.1041)
OKLCHoklch(55.71% 0.115 245.4)
XYZxyz(16.0425, 17.4916, 44.6416)
Luminance0.1749 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F79B2 #B2682F
analogous
#2FB2AA #2F79B2 #2F38B2
triadic
#2F79B2 #B22F79 #79B22F
tetradic
#2F79B2 #AA2FB2 #B2682F #38B22F
square
#2F79B2 #AA2FB2 #B2682F #38B22F
split-complementary
#2F79B2 #B22F38 #B2AA2F
monochromatic
#153751 #225882 #2F79B2 #4E98D0 #7EB4DD

Accessibility & contrast

On white

4.67
#2F79B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#2F79B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2F79B2
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F79B2#FFFFFF#000000##FFFFFF
##2F79B21.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F7BB4
Deuteranopia (green-blind)
#4D6FB1
Tritanopia (blue-blind)
#00878D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2f79b2;
/* rgb */ color: rgb(47, 121, 178);
/* oklch */ color: oklch(55.7% 0.115 245.4);
Tailwind
colors: {
  custom: {
    50: '#799fc9',
    500: '#2f79b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f79b2;
$custom-light: #799fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f79b2",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 178
  },
  "hsl": {
    "h": 206.107,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55708,
    "c": 0.1145,
    "h": 245.4
  },
  "luminance": 0.17493
}

Semantic roles & 50–950 ramp

primary
#2F79B2
secondary
#C69977
accent
#8A46E1
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2F79B2

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

Preview Lab → · Contrast checker → · Palette generator →

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