#2F79A5#2F79A5

#2F79A5 is a mid, moderate cyan. Relative luminance 0.170; OKLCH L 55.0% C 0.100 H 238.6°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#2F79A5
RGBrgb(47, 121, 165)
HSLhsl(202, 56%, 42%)
HSVhsv(202, 72%, 65%)
CMYKcmyk(71.5%, 26.7%, 0%, 35.3%)
CIE-LABlab(48.25, -7.96, -30.14)
CIE-LCHlch(48.25, 31.18, 255.20°)
OKLaboklab(55.01% -0.0518 -0.085)
OKLCHoklch(55.01% 0.1 238.6)
XYZxyz(14.7985, 16.9940, 38.0903)
Luminance0.1700 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F79A5 #A55B2F
analogous
#2FA596 #2F79A5 #2F3EA5
triadic
#2F79A5 #A52F79 #79A52F
tetradic
#2F79A5 #962FA5 #A55B2F #3EA52F
square
#2F79A5 #962FA5 #A55B2F #3EA52F
split-complementary
#2F79A5 #A52F3E #A5962F
monochromatic
#143346 #215675 #2F79A5 #4799CB #76B4D8

Accessibility & contrast

On white

4.77
#2F79A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#2F79A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F79A5
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F79A5#FFFFFF#000000##FFFFFF
##2F79A51.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6479A7
Deuteranopia (green-blind)
#546DA4
Tritanopia (blue-blind)
#008488
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2f79a5;
/* rgb */ color: rgb(47, 121, 165);
/* oklch */ color: oklch(55.0% 0.100 238.6);
Tailwind
colors: {
  custom: {
    50: '#779fc0',
    500: '#2f79a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f79a5;
$custom-light: #779fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f79a5",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 165
  },
  "hsl": {
    "h": 202.373,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.55013,
    "c": 0.09953,
    "h": 238.6
  },
  "luminance": 0.16996
}

Semantic roles & 50–950 ramp

primary
#2F79A5
secondary
#C08E70
accent
#8149DF
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0E12
muted
#7C7E81

Preview Lab

Preview with #2F79A5

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

Preview Lab → · Contrast checker → · Palette generator →

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