#2F79AB#2F79AB

#2F79AB is a mid, moderate cyan. Relative luminance 0.172; OKLCH L 55.3% C 0.106 H 242.0°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#2F79AB
RGBrgb(47, 121, 171)
HSLhsl(204, 57%, 43%)
HSVhsv(204, 73%, 67%)
CMYKcmyk(72.5%, 29.2%, 0%, 32.9%)
CIE-LABlab(48.53, -5.83, -33.20)
CIE-LCHlch(48.53, 33.71, 260.04°)
OKLaboklab(55.33% -0.0498 -0.0938)
OKLCHoklch(55.33% 0.106 242)
XYZxyz(15.3575, 17.2176, 41.0341)
Luminance0.1722 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F79AB #AB612F
analogous
#2FAB9F #2F79AB #2F3BAB
triadic
#2F79AB #AB2F79 #79AB2F
tetradic
#2F79AB #9F2FAB #AB612F #3BAB2F
square
#2F79AB #9F2FAB #AB612F #3BAB2F
split-complementary
#2F79AB #AB2F3B #AB9F2F
monochromatic
#15354B #22577B #2F79AB #4A98CD #7AB4DA

Accessibility & contrast

On white

4.73
#2F79AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#2F79AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F79AB
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F79AB#FFFFFF#000000##FFFFFF
##2F79AB1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#627AAD
Deuteranopia (green-blind)
#516EAA
Tritanopia (blue-blind)
#00858A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2f79ab;
/* rgb */ color: rgb(47, 121, 171);
/* oklch */ color: oklch(55.3% 0.106 242.0);
Tailwind
colors: {
  custom: {
    50: '#789fc4',
    500: '#2f79ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f79ab;
$custom-light: #789fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f79ab",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 171
  },
  "hsl": {
    "h": 204.194,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.55327,
    "c": 0.10625,
    "h": 242
  },
  "luminance": 0.17219
}

Semantic roles & 50–950 ramp

primary
#2F79AB
secondary
#C39373
accent
#8548E0
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E12
muted
#7C7E81

Preview Lab

Preview with #2F79AB

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

Preview Lab → · Contrast checker → · Palette generator →

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