#2A7BAB#2A7BAB

#2A7BAB is a mid, moderate cyan. Relative luminance 0.176; OKLCH L 55.7% C 0.107 H 239.2°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#2A7BAB
RGBrgb(42, 123, 171)
HSLhsl(202, 61%, 42%)
HSVhsv(202, 75%, 67%)
CMYKcmyk(75.4%, 28.1%, 0%, 32.9%)
CIE-LABlab(49.00, -7.69, -32.47)
CIE-LCHlch(49.00, 33.37, 256.68°)
OKLaboklab(55.66% -0.0546 -0.0917)
OKLCHoklch(55.66% 0.107 239.2)
XYZxyz(15.3856, 17.5966, 41.1058)
Luminance0.1760 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7BAB #AB5A2A
analogous
#2AAB9B #2A7BAB #2A3AAB
triadic
#2A7BAB #AB2A7B #7BAB2A
tetradic
#2A7BAB #9B2AAB #AB5A2A #3AAB2A
square
#2A7BAB #9B2AAB #AB5A2A #3AAB2A
split-complementary
#2A7BAB #AB2A3A #AB9B2A
monochromatic
#123449 #1E587A #2A7BAB #429BD1 #73B5DD

Accessibility & contrast

On white

4.65
#2A7BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#2A7BAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7BAB
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7BAB#FFFFFF#000000##FFFFFF
##2A7BAB1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#647BAD
Deuteranopia (green-blind)
#536FAA
Tritanopia (blue-blind)
#00878C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2a7bab;
/* rgb */ color: rgb(42, 123, 171);
/* oklch */ color: oklch(55.7% 0.107 239.2);
Tailwind
colors: {
  custom: {
    50: '#76a1c4',
    500: '#2a7bab',
    950: '#000000',
  },
}
SCSS
$custom: #2a7bab;
$custom-light: #76a1c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7bab",
  "rgb": {
    "r": 42,
    "g": 123,
    "b": 171
  },
  "hsl": {
    "h": 202.326,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.5566,
    "c": 0.10675,
    "h": 239.2
  },
  "luminance": 0.17598
}

Semantic roles & 50–950 ramp

primary
#2A7BAB
secondary
#C48D6D
accent
#7F44E4
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E12
muted
#7C7E81

Preview Lab

Preview with #2A7BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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