#2F798E#2F798E

#2F798E is a mid, moderate cyan. Relative luminance 0.162; OKLCH L 53.9% C 0.079 H 219.9°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#2F798E
RGBrgb(47, 121, 142)
HSLhsl(193, 50%, 37%)
HSVhsv(193, 67%, 56%)
CMYKcmyk(66.9%, 14.8%, 0%, 44.3%)
CIE-LABlab(47.28, -15.85, -18.15)
CIE-LCHlch(47.28, 24.10, 228.86°)
OKLaboklab(53.91% -0.0605 -0.0506)
OKLCHoklch(53.91% 0.079 219.9)
XYZxyz(12.8902, 16.2307, 28.0394)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F798E #8E442F
analogous
#2F8E74 #2F798E #2F4A8E
triadic
#2F798E #8E2F79 #798E2F
tetradic
#2F798E #742F8E #8E442F #4A8E2F
square
#2F798E #742F8E #8E442F #4A8E2F
split-complementary
#2F798E #8E2F4A #8E742F
monochromatic
#112B32 #205260 #2F798E #3EA0BC #6AB8CE

Accessibility & contrast

On white

4.95
#2F798E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#2F798E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F798E
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F798E#FFFFFF#000000##FFFFFF
##2F798E1.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C768F
Deuteranopia (green-blind)
#5F6C8E
Tritanopia (blue-blind)
#008080
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2f798e;
/* rgb */ color: rgb(47, 121, 142);
/* oklch */ color: oklch(53.9% 0.079 219.9);
Tailwind
colors: {
  custom: {
    50: '#739faf',
    500: '#2f798e',
    950: '#000000',
  },
}
SCSS
$custom: #2f798e;
$custom-light: #739faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f798e",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 142
  },
  "hsl": {
    "h": 193.263,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.53911,
    "c": 0.07888,
    "h": 219.9
  },
  "luminance": 0.16232
}

Semantic roles & 50–950 ramp

primary
#2F798E
secondary
#B57664
accent
#6D4EDA
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#090E10
muted
#7B7E7F

Preview Lab

Preview with #2F798E

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

Preview Lab → · Contrast checker → · Palette generator →

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