#2A7FB1#2A7FB1

#2A7FB1 is a mid, moderate cyan. Relative luminance 0.188; OKLCH L 56.9% C 0.111 H 239.3°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#2A7FB1
RGBrgb(42, 127, 177)
HSLhsl(202, 62%, 43%)
HSVhsv(202, 76%, 69%)
CMYKcmyk(76.3%, 28.2%, 0%, 30.6%)
CIE-LABlab(50.50, -7.86, -33.60)
CIE-LCHlch(50.50, 34.51, 256.83°)
OKLaboklab(56.94% -0.0565 -0.095)
OKLCHoklch(56.94% 0.111 239.3)
XYZxyz(16.4769, 18.8434, 44.3552)
Luminance0.1885 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7FB1 #B15C2A
analogous
#2AB19F #2A7FB1 #2A3CB1
triadic
#2A7FB1 #B12A7F #7FB12A
tetradic
#2A7FB1 #9F2AB1 #B15C2A #3CB12A
square
#2A7FB1 #9F2AB1 #B15C2A #3CB12A
split-complementary
#2A7FB1 #B12A3C #B19F2A
monochromatic
#13384E #1E5C80 #2A7FB1 #459ED3 #77B8DF

Accessibility & contrast

On white

4.40
#2A7FB1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#2A7FB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A7FB1
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7FB1#FFFFFF#000000##000000
##2A7FB11.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#677FB3
Deuteranopia (green-blind)
#5573B0
Tritanopia (blue-blind)
#008C90
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2a7fb1;
/* rgb */ color: rgb(42, 127, 177);
/* oklch */ color: oklch(56.9% 0.111 239.3);
Tailwind
colors: {
  custom: {
    50: '#77a4c8',
    500: '#2a7fb1',
    950: '#000000',
  },
}
SCSS
$custom: #2a7fb1;
$custom-light: #77a4c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7fb1",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 177
  },
  "hsl": {
    "h": 202.222,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.56943,
    "c": 0.1105,
    "h": 239.3
  },
  "luminance": 0.18845
}

Semantic roles & 50–950 ramp

primary
#2A7FB1
secondary
#C69070
accent
#7F43E5
background
#F7FAFC
surface
#EEF3F8
border
#C9CDD1
text
#0A0F13
muted
#7C7F82

Preview Lab

Preview with #2A7FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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