#2F7798#2F7798

#2F7798 is a mid, moderate cyan. Relative luminance 0.161; OKLCH L 53.9% C 0.087 H 231.5°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#2F7798
RGBrgb(47, 119, 152)
HSLhsl(199, 53%, 39%)
HSVhsv(199, 69%, 60%)
CMYKcmyk(69.1%, 21.7%, 0%, 40.4%)
CIE-LABlab(47.06, -11.35, -24.38)
CIE-LCHlch(47.06, 26.89, 245.04°)
OKLaboklab(53.87% -0.0544 -0.0684)
OKLCHoklch(53.87% 0.087 231.5)
XYZxyz(13.4344, 16.0635, 32.0922)
Luminance0.1606 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7798 #98502F
analogous
#2F9885 #2F7798 #2F4398
triadic
#2F7798 #982F77 #77982F
tetradic
#2F7798 #852F98 #98502F #43982F
square
#2F7798 #852F98 #98502F #43982F
split-complementary
#2F7798 #982F43 #98852F
monochromatic
#122E3B #215269 #2F7798 #409BC4 #6FB3D2

Accessibility & contrast

On white

4.98
#2F7798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#2F7798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7798
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7798#FFFFFF#000000##FFFFFF
##2F77981.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#66759A
Deuteranopia (green-blind)
#586B98
Tritanopia (blue-blind)
#008082
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2f7798;
/* rgb */ color: rgb(47, 119, 152);
/* oklch */ color: oklch(53.9% 0.087 231.5);
Tailwind
colors: {
  custom: {
    50: '#749eb6',
    500: '#2f7798',
    950: '#000000',
  },
}
SCSS
$custom: #2f7798;
$custom-light: #749eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7798",
  "rgb": {
    "r": 47,
    "g": 119,
    "b": 152
  },
  "hsl": {
    "h": 198.857,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.53872,
    "c": 0.08738,
    "h": 231.5
  },
  "luminance": 0.16065
}

Semantic roles & 50–950 ramp

primary
#2F7798
secondary
#BA8269
accent
#794CDC
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#090E11
muted
#7B7E80

Preview Lab

Preview with #2F7798

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

Preview Lab → · Contrast checker → · Palette generator →

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