#2A7EAF#2A7EAF

#2A7EAF is a mid, moderate cyan. Relative luminance 0.185; OKLCH L 56.6% C 0.109 H 239.0°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#2A7EAF
RGBrgb(42, 126, 175)
HSLhsl(202, 61%, 43%)
HSVhsv(202, 76%, 69%)
CMYKcmyk(76%, 28%, 0%, 31.4%)
CIE-LABlab(50.11, -8.00, -33.07)
CIE-LCHlch(50.11, 34.02, 256.40°)
OKLaboklab(56.6% -0.0562 -0.0934)
OKLCHoklch(56.6% 0.109 239)
XYZxyz(16.1505, 18.5072, 43.2702)
Luminance0.1851 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7EAF #AF5B2A
analogous
#2AAF9D #2A7EAF #2A3CAF
triadic
#2A7EAF #AF2A7E #7EAF2A
tetradic
#2A7EAF #9D2AAF #AF5B2A #3CAF2A
square
#2A7EAF #9D2AAF #AF5B2A #3CAF2A
split-complementary
#2A7EAF #AF2A3C #AF9D2A
monochromatic
#12374C #1E5A7E #2A7EAF #449ED2 #75B7DE

Accessibility & contrast

On white

4.47
#2A7EAF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#2A7EAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A7EAF
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7EAF#FFFFFF#000000##000000
##2A7EAF1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#677EB1
Deuteranopia (green-blind)
#5572AE
Tritanopia (blue-blind)
#008A8F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #2a7eaf;
/* rgb */ color: rgb(42, 126, 175);
/* oklch */ color: oklch(56.6% 0.109 239.0);
Tailwind
colors: {
  custom: {
    50: '#77a3c7',
    500: '#2a7eaf',
    950: '#000000',
  },
}
SCSS
$custom: #2a7eaf;
$custom-light: #77a3c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7eaf",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 175
  },
  "hsl": {
    "h": 202.105,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.56597,
    "c": 0.10902,
    "h": 239
  },
  "luminance": 0.18509
}

Semantic roles & 50–950 ramp

primary
#2A7EAF
secondary
#C68F6F
accent
#7F43E4
background
#F7FAFC
surface
#EEF3F8
border
#C9CDD1
text
#0A0F13
muted
#7C7F82

Preview Lab

Preview with #2A7EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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