#2F798B#2F798B

#2F798B is a mid, moderate cyan. Relative luminance 0.161; OKLCH L 53.8% C 0.077 H 216.7°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#2F798B
RGBrgb(47, 121, 139)
HSLhsl(192, 49%, 36%)
HSVhsv(192, 66%, 55%)
CMYKcmyk(66.2%, 12.9%, 0%, 45.5%)
CIE-LABlab(47.16, -16.84, -16.55)
CIE-LCHlch(47.16, 23.61, 224.51°)
OKLaboklab(53.78% -0.0618 -0.046)
OKLCHoklch(53.78% 0.077 216.7)
XYZxyz(12.6680, 16.1418, 26.8692)
Luminance0.1614 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F798B #8B412F
analogous
#2F8B6F #2F798B #2F4B8B
triadic
#2F798B #8B2F79 #798B2F
tetradic
#2F798B #6F2F8B #8B412F #4B8B2F
square
#2F798B #6F2F8B #8B412F #4B8B2F
split-complementary
#2F798B #8B2F4B #8B6F2F
monochromatic
#102930 #20515D #2F798B #3EA1B9 #68B9CC

Accessibility & contrast

On white

4.97
#2F798B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#2F798B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F798B
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F798B#FFFFFF#000000##FFFFFF
##2F798B1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D758C
Deuteranopia (green-blind)
#606C8B
Tritanopia (blue-blind)
#007F7F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2f798b;
/* rgb */ color: rgb(47, 121, 139);
/* oklch */ color: oklch(53.8% 0.077 216.7);
Tailwind
colors: {
  custom: {
    50: '#73a0ad',
    500: '#2f798b',
    950: '#000000',
  },
}
SCSS
$custom: #2f798b;
$custom-light: #73a0ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f798b",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 139
  },
  "hsl": {
    "h": 191.739,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.5378,
    "c": 0.07706,
    "h": 216.7
  },
  "luminance": 0.16143
}

Semantic roles & 50–950 ramp

primary
#2F798B
secondary
#B37263
accent
#6A4FD9
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#090E10
muted
#7B7E7F

Preview Lab

Preview with #2F798B

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

Preview Lab → · Contrast checker → · Palette generator →

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