#2F79AC#2F79AC

#2F79AC is a mid, moderate cyan. Relative luminance 0.173; OKLCH L 55.4% C 0.107 H 242.5°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#2F79AC
RGBrgb(47, 121, 172)
HSLhsl(204, 57%, 43%)
HSVhsv(204, 73%, 67%)
CMYKcmyk(72.7%, 29.7%, 0%, 32.5%)
CIE-LABlab(48.58, -5.47, -33.71)
CIE-LCHlch(48.58, 34.15, 260.78°)
OKLaboklab(55.38% -0.0495 -0.0953)
OKLCHoklch(55.38% 0.107 242.5)
XYZxyz(15.4532, 17.2559, 41.5380)
Luminance0.1726 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F79AC #AC622F
analogous
#2FACA0 #2F79AC #2F3AAC
triadic
#2F79AC #AC2F79 #79AC2F
tetradic
#2F79AC #A02FAC #AC622F #3AAC2F
square
#2F79AC #A02FAC #AC622F #3AAC2F
split-complementary
#2F79AC #AC2F3A #ACA02F
monochromatic
#15354C #22577C #2F79AC #4B98CE #7BB4DB

Accessibility & contrast

On white

4.72
#2F79AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#2F79AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F79AC
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F79AC#FFFFFF#000000##FFFFFF
##2F79AC1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#627AAE
Deuteranopia (green-blind)
#506EAB
Tritanopia (blue-blind)
#00868B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2f79ac;
/* rgb */ color: rgb(47, 121, 172);
/* oklch */ color: oklch(55.4% 0.107 242.5);
Tailwind
colors: {
  custom: {
    50: '#789fc5',
    500: '#2f79ac',
    950: '#000000',
  },
}
SCSS
$custom: #2f79ac;
$custom-light: #789fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f79ac",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 172
  },
  "hsl": {
    "h": 204.48,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.55381,
    "c": 0.1074,
    "h": 242.5
  },
  "luminance": 0.17258
}

Semantic roles & 50–950 ramp

primary
#2F79AC
secondary
#C39474
accent
#8647E0
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2F79AC

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

Preview Lab → · Contrast checker → · Palette generator →

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