#2A7FAD#2A7FAD

#2A7FAD is a mid, moderate cyan. Relative luminance 0.187; OKLCH L 56.7% C 0.106 H 237.0°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#2A7FAD
RGBrgb(42, 127, 173)
HSLhsl(201, 61%, 42%)
HSVhsv(201, 76%, 68%)
CMYKcmyk(75.7%, 26.6%, 0%, 32.2%)
CIE-LABlab(50.32, -9.29, -31.58)
CIE-LCHlch(50.32, 32.92, 253.60°)
OKLaboklab(56.74% -0.0578 -0.0891)
OKLCHoklch(56.74% 0.106 237)
XYZxyz(16.0841, 18.6862, 42.2862)
Luminance0.1869 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7FAD #AD582A
analogous
#2AAD9A #2A7FAD #2A3DAD
triadic
#2A7FAD #AD2A7F #7FAD2A
tetradic
#2A7FAD #9A2AAD #AD582A #3DAD2A
square
#2A7FAD #9A2AAD #AD582A #3DAD2A
split-complementary
#2A7FAD #AD2A3D #AD9A2A
monochromatic
#12374B #1E5B7C #2A7FAD #439FD1 #74B8DD

Accessibility & contrast

On white

4.43
#2A7FAD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#2A7FAD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A7FAD
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7FAD#FFFFFF#000000##000000
##2A7FAD1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#697FAF
Deuteranopia (green-blind)
#5772AC
Tritanopia (blue-blind)
#008B8F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2a7fad;
/* rgb */ color: rgb(42, 127, 173);
/* oklch */ color: oklch(56.7% 0.106 237.0);
Tailwind
colors: {
  custom: {
    50: '#76a4c5',
    500: '#2a7fad',
    950: '#000000',
  },
}
SCSS
$custom: #2a7fad;
$custom-light: #76a4c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7fad",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 173
  },
  "hsl": {
    "h": 201.069,
    "s": 60.93,
    "l": 42.157
  },
  "oklch": {
    "l": 0.56735,
    "c": 0.10622,
    "h": 237
  },
  "luminance": 0.18688
}

Semantic roles & 50–950 ramp

primary
#2A7FAD
secondary
#C58D6E
accent
#7C44E4
background
#F7FAFC
surface
#EEF3F8
border
#C9CDD1
text
#0A0F13
muted
#7C7F82

Preview Lab

Preview with #2A7FAD

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

Preview Lab → · Contrast checker → · Palette generator →

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