#2A7899#2A7899

#2A7899 is a mid, moderate cyan. Relative luminance 0.162; OKLCH L 54.0% C 0.090 H 230.0°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#2A7899
RGBrgb(42, 120, 153)
HSLhsl(198, 57%, 38%)
HSVhsv(198, 73%, 60%)
CMYKcmyk(72.5%, 21.6%, 0%, 40%)
CIE-LABlab(47.27, -12.35, -24.66)
CIE-LCHlch(47.27, 27.58, 243.40°)
OKLaboklab(54.01% -0.058 -0.0692)
OKLCHoklch(54.01% 0.09 230)
XYZxyz(13.4188, 16.2236, 32.5551)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7899 #994B2A
analogous
#2A9982 #2A7899 #2A4099
triadic
#2A7899 #992A78 #78992A
tetradic
#2A7899 #822A99 #994B2A #40992A
square
#2A7899 #822A99 #994B2A #40992A
split-complementary
#2A7899 #992A40 #99822A
monochromatic
#102D39 #1D5269 #2A7899 #389DC8 #68B5D6

Accessibility & contrast

On white

4.95
#2A7899 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#2A7899 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7899
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7899#FFFFFF#000000##FFFFFF
##2A78991.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#67769B
Deuteranopia (green-blind)
#586B99
Tritanopia (blue-blind)
#008183
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2a7899;
/* rgb */ color: rgb(42, 120, 153);
/* oklch */ color: oklch(54.0% 0.090 230.0);
Tailwind
colors: {
  custom: {
    50: '#739fb7',
    500: '#2a7899',
    950: '#000000',
  },
}
SCSS
$custom: #2a7899;
$custom-light: #739fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7899",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 153
  },
  "hsl": {
    "h": 197.838,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.54012,
    "c": 0.09026,
    "h": 230
  },
  "luminance": 0.16225
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A7899

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

Preview Lab → · Contrast checker → · Palette generator →

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