#2F79CC#2F79CC

#2F79CC is a mid, vivid cyan. Relative luminance 0.186; OKLCH L 57.2% C 0.147 H 253.9°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#2F79CC
RGBrgb(47, 121, 204)
HSLhsl(212, 63%, 49%)
HSVhsv(212, 77%, 80%)
CMYKcmyk(77%, 40.7%, 0%, 20%)
CIE-LABlab(50.26, 6.26, -49.47)
CIE-LCHlch(50.26, 49.86, 277.22°)
OKLaboklab(57.25% -0.0408 -0.1414)
OKLCHoklch(57.25% 0.147 253.9)
XYZxyz(18.9047, 18.6365, 59.7159)
Luminance0.1864 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F79CC #CC822F
analogous
#2FC8CC #2F79CC #342FCC
triadic
#2F79CC #CC2F79 #79CC2F
tetradic
#2F79CC #CC2FC8 #CC822F #2FCC34
square
#2F79CC #CC2FC8 #CC822F #2FCC34
split-complementary
#2F79CC #CC342F #C8CC2F
monochromatic
#183E69 #245B9A #2F79CC #5E99DA #90B8E5

Accessibility & contrast

On white

4.44
#2F79CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#2F79CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F79CC
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F79CC#FFFFFF#000000##000000
##2F79CC1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#517FCF
Deuteranopia (green-blind)
#3671CA
Tritanopia (blue-blind)
#008D98
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2f79cc;
/* rgb */ color: rgb(47, 121, 204);
/* oklch */ color: oklch(57.2% 0.147 253.9);
Tailwind
colors: {
  custom: {
    50: '#7e9fdc',
    500: '#2f79cc',
    950: '#000000',
  },
}
SCSS
$custom: #2f79cc;
$custom-light: #7e9fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f79cc",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 204
  },
  "hsl": {
    "h": 211.72,
    "s": 62.55,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57246,
    "c": 0.14718,
    "h": 253.9
  },
  "luminance": 0.18639
}

Semantic roles & 50–950 ramp

primary
#2F79CC
secondary
#D0AD87
accent
#9942E6
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0B0E15
muted
#7C7E83

Preview Lab

Preview with #2F79CC

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

Preview Lab → · Contrast checker → · Palette generator →

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