#2F798C#2F798C

#2F798C is a mid, moderate cyan. Relative luminance 0.162; OKLCH L 53.8% C 0.078 H 217.8°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#2F798C
RGBrgb(47, 121, 140)
HSLhsl(192, 50%, 37%)
HSVhsv(192, 66%, 55%)
CMYKcmyk(66.4%, 13.6%, 0%, 45.1%)
CIE-LABlab(47.20, -16.51, -17.08)
CIE-LCHlch(47.20, 23.76, 225.98°)
OKLaboklab(53.82% -0.0614 -0.0475)
OKLCHoklch(53.82% 0.078 217.8)
XYZxyz(12.7414, 16.1712, 27.2557)
Luminance0.1617 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F798C #8C422F
analogous
#2F8C71 #2F798C #2F4B8C
triadic
#2F798C #8C2F79 #798C2F
tetradic
#2F798C #712F8C #8C422F #4B8C2F
square
#2F798C #712F8C #8C422F #4B8C2F
split-complementary
#2F798C #8C2F4B #8C712F
monochromatic
#102A30 #20515E #2F798C #3EA1BA #69B8CD

Accessibility & contrast

On white

4.96
#2F798C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F798C
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F798C#FFFFFF#000000##FFFFFF
##2F798C1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D768D
Deuteranopia (green-blind)
#5F6C8C
Tritanopia (blue-blind)
#00807F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2f798c;
/* rgb */ color: rgb(47, 121, 140);
/* oklch */ color: oklch(53.8% 0.078 217.8);
Tailwind
colors: {
  custom: {
    50: '#739fad',
    500: '#2f798c',
    950: '#000000',
  },
}
SCSS
$custom: #2f798c;
$custom-light: #739fad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f798c",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 140
  },
  "hsl": {
    "h": 192.258,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.53823,
    "c": 0.07764,
    "h": 217.8
  },
  "luminance": 0.16173
}

Semantic roles & 50–950 ramp

primary
#2F798C
secondary
#B47463
accent
#6B4FD9
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#090E10
muted
#7B7E7F

Preview Lab

Preview with #2F798C

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

Preview Lab → · Contrast checker → · Palette generator →

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