#2F7897#2F7897

#2F7897 is a mid, moderate cyan. Relative luminance 0.163; OKLCH L 54.1% C 0.086 H 229.5°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#2F7897
RGBrgb(47, 120, 151)
HSLhsl(198, 53%, 39%)
HSVhsv(198, 69%, 59%)
CMYKcmyk(68.9%, 20.5%, 0%, 40.8%)
CIE-LABlab(47.33, -12.26, -23.37)
CIE-LCHlch(47.33, 26.40, 242.32°)
OKLaboklab(54.07% -0.0559 -0.0655)
OKLCHoklch(54.07% 0.086 229.5)
XYZxyz(13.4725, 16.2702, 31.7026)
Luminance0.1627 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7897 #974E2F
analogous
#2F9782 #2F7897 #2F4497
triadic
#2F7897 #972F78 #78972F
tetradic
#2F7897 #822F97 #974E2F #44972F
square
#2F7897 #822F97 #974E2F #44972F
split-complementary
#2F7897 #972F44 #97822F
monochromatic
#122E3A #205368 #2F7897 #409CC3 #6EB4D2

Accessibility & contrast

On white

4.94
#2F7897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F7897
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7897#FFFFFF#000000##FFFFFF
##2F78971.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#687699
Deuteranopia (green-blind)
#5A6C97
Tritanopia (blue-blind)
#008182
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2f7897;
/* rgb */ color: rgb(47, 120, 151);
/* oklch */ color: oklch(54.1% 0.086 229.5);
Tailwind
colors: {
  custom: {
    50: '#749fb5',
    500: '#2f7897',
    950: '#000000',
  },
}
SCSS
$custom: #2f7897;
$custom-light: #749fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7897",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 151
  },
  "hsl": {
    "h": 197.885,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.54073,
    "c": 0.08607,
    "h": 229.5
  },
  "luminance": 0.16272
}

Semantic roles & 50–950 ramp

primary
#2F7897
secondary
#B98168
accent
#774CDC
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#090E11
muted
#7B7E80

Preview Lab

Preview with #2F7897

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

Preview Lab → · Contrast checker → · Palette generator →

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