#2A7798#2A7798

#2A7798 is a mid, moderate cyan. Relative luminance 0.160; OKLCH L 53.7% C 0.090 H 230.3°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#2A7798
RGBrgb(42, 119, 152)
HSLhsl(198, 57%, 38%)
HSVhsv(198, 72%, 60%)
CMYKcmyk(72.4%, 21.7%, 0%, 40.4%)
CIE-LABlab(46.91, -12.13, -24.62)
CIE-LCHlch(46.91, 27.44, 243.78°)
OKLaboklab(53.71% -0.0573 -0.0691)
OKLCHoklch(53.71% 0.09 230.3)
XYZxyz(13.2169, 15.9514, 32.0820)
Luminance0.1595 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7798 #984B2A
analogous
#2A9882 #2A7798 #2A4098
triadic
#2A7798 #982A77 #77982A
tetradic
#2A7798 #822A98 #984B2A #40982A
square
#2A7798 #822A98 #984B2A #40982A
split-complementary
#2A7798 #982A40 #98822A
monochromatic
#102C38 #1D5168 #2A7798 #379CC8 #67B4D5

Accessibility & contrast

On white

5.01
#2A7798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#2A7798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7798
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7798#FFFFFF#000000##FFFFFF
##2A77981.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#66759A
Deuteranopia (green-blind)
#576A98
Tritanopia (blue-blind)
#008082
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2a7798;
/* rgb */ color: rgb(42, 119, 152);
/* oklch */ color: oklch(53.7% 0.090 230.3);
Tailwind
colors: {
  custom: {
    50: '#739eb6',
    500: '#2a7798',
    950: '#000000',
  },
}
SCSS
$custom: #2a7798;
$custom-light: #739eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7798",
  "rgb": {
    "r": 42,
    "g": 119,
    "b": 152
  },
  "hsl": {
    "h": 198,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.53713,
    "c": 0.08975,
    "h": 230.3
  },
  "luminance": 0.15953
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A7798

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

Preview Lab → · Contrast checker → · Palette generator →

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