#2F7997#2F7997

#2F7997 is a mid, moderate cyan. Relative luminance 0.165; OKLCH L 54.3% C 0.086 H 228.4°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#2F7997
RGBrgb(47, 121, 151)
HSLhsl(197, 53%, 39%)
HSVhsv(197, 69%, 59%)
CMYKcmyk(68.9%, 19.9%, 0%, 40.8%)
CIE-LABlab(47.64, -12.83, -22.89)
CIE-LCHlch(47.64, 26.24, 240.73°)
OKLaboklab(54.32% -0.0569 -0.0641)
OKLCHoklch(54.32% 0.086 228.4)
XYZxyz(13.5933, 16.5120, 31.7429)
Luminance0.1651 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7997 #974D2F
analogous
#2F9781 #2F7997 #2F4597
triadic
#2F7997 #972F79 #79972F
tetradic
#2F7997 #812F97 #974D2F #45972F
square
#2F7997 #812F97 #974D2F #45972F
split-complementary
#2F7997 #972F45 #97812F
monochromatic
#122E3A #205468 #2F7997 #409DC3 #6EB5D2

Accessibility & contrast

On white

4.88
#2F7997 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#2F7997 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7997
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7997#FFFFFF#000000##FFFFFF
##2F79971.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#697798
Deuteranopia (green-blind)
#5B6C97
Tritanopia (blue-blind)
#008283
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2f7997;
/* rgb */ color: rgb(47, 121, 151);
/* oklch */ color: oklch(54.3% 0.086 228.4);
Tailwind
colors: {
  custom: {
    50: '#749fb5',
    500: '#2f7997',
    950: '#000000',
  },
}
SCSS
$custom: #2f7997;
$custom-light: #749fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7997",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 151
  },
  "hsl": {
    "h": 197.308,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.54322,
    "c": 0.08573,
    "h": 228.4
  },
  "luminance": 0.16513
}

Semantic roles & 50–950 ramp

primary
#2F7997
secondary
#B98068
accent
#754CDC
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#090E11
muted
#7B7E80

Preview Lab

Preview with #2F7997

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

Preview Lab → · Contrast checker → · Palette generator →

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