#2A7797#2A7797

#2A7797 is a mid, moderate cyan. Relative luminance 0.159; OKLCH L 53.7% C 0.089 H 229.5°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#2A7797
RGBrgb(42, 119, 151)
HSLhsl(198, 56%, 38%)
HSVhsv(198, 72%, 59%)
CMYKcmyk(72.2%, 21.2%, 0%, 40.8%)
CIE-LABlab(46.87, -12.48, -24.10)
CIE-LCHlch(46.87, 27.13, 242.63°)
OKLaboklab(53.67% -0.0577 -0.0676)
OKLCHoklch(53.67% 0.089 229.5)
XYZxyz(13.1353, 15.9188, 31.6525)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7797 #974A2A
analogous
#2A9781 #2A7797 #2A4097
triadic
#2A7797 #972A77 #77972A
tetradic
#2A7797 #812A97 #974A2A #40972A
square
#2A7797 #812A97 #974A2A #40972A
split-complementary
#2A7797 #972A40 #97812A
monochromatic
#0F2C37 #1D5167 #2A7797 #379DC7 #67B4D5

Accessibility & contrast

On white

5.02
#2A7797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#2A7797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7797
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7797#FFFFFF#000000##FFFFFF
##2A77971.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#677599
Deuteranopia (green-blind)
#586A97
Tritanopia (blue-blind)
#008082
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2a7797;
/* rgb */ color: rgb(42, 119, 151);
/* oklch */ color: oklch(53.7% 0.089 229.5);
Tailwind
colors: {
  custom: {
    50: '#729eb5',
    500: '#2a7797',
    950: '#000000',
  },
}
SCSS
$custom: #2a7797;
$custom-light: #729eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7797",
  "rgb": {
    "r": 42,
    "g": 119,
    "b": 151
  },
  "hsl": {
    "h": 197.615,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.53665,
    "c": 0.08885,
    "h": 229.5
  },
  "luminance": 0.1592
}

Semantic roles & 50–950 ramp

primary
#2A7797
secondary
#BB7C62
accent
#7548E0
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#090E11
muted
#7B7E80

Preview Lab

Preview with #2A7797

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

Preview Lab → · Contrast checker → · Palette generator →

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