#2A7BAC#2A7BAC

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

Color values

HEX#2A7BAC
RGBrgb(42, 123, 172)
HSLhsl(203, 61%, 42%)
HSVhsv(203, 76%, 67%)
CMYKcmyk(75.6%, 28.5%, 0%, 32.5%)
CIE-LABlab(49.05, -7.33, -32.98)
CIE-LCHlch(49.05, 33.78, 257.47°)
OKLaboklab(55.71% -0.0543 -0.0932)
OKLCHoklch(55.71% 0.108 239.8)
XYZxyz(15.4813, 17.6349, 41.6097)
Luminance0.1764 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7BAC #AC5B2A
analogous
#2AAC9C #2A7BAC #2A3AAC
triadic
#2A7BAC #AC2A7B #7BAC2A
tetradic
#2A7BAC #9C2AAC #AC5B2A #3AAC2A
square
#2A7BAC #9C2AAC #AC5B2A #3AAC2A
split-complementary
#2A7BAC #AC2A3A #AC9C2A
monochromatic
#12354A #1E587B #2A7BAC #429BD1 #73B5DD

Accessibility & contrast

On white

4.64
#2A7BAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#2A7BAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7BAC
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7BAC#FFFFFF#000000##FFFFFF
##2A7BAC1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#647BAE
Deuteranopia (green-blind)
#526FAB
Tritanopia (blue-blind)
#00878C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2a7bac;
/* rgb */ color: rgb(42, 123, 172);
/* oklch */ color: oklch(55.7% 0.108 239.8);
Tailwind
colors: {
  custom: {
    50: '#76a1c5',
    500: '#2a7bac',
    950: '#000000',
  },
}
SCSS
$custom: #2a7bac;
$custom-light: #76a1c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7bac",
  "rgb": {
    "r": 42,
    "g": 123,
    "b": 172
  },
  "hsl": {
    "h": 202.615,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.55713,
    "c": 0.10786,
    "h": 239.8
  },
  "luminance": 0.17637
}

Semantic roles & 50–950 ramp

primary
#2A7BAC
secondary
#C48E6D
accent
#8044E4
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2A7BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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