#2A7FA4#2A7FA4

#2A7FA4 is a mid, moderate cyan. Relative luminance 0.184; OKLCH L 56.3% C 0.097 H 231.2°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#2A7FA4
RGBrgb(42, 127, 164)
HSLhsl(198, 59%, 40%)
HSVhsv(198, 74%, 64%)
CMYKcmyk(74.4%, 22.6%, 0%, 35.7%)
CIE-LABlab(49.92, -12.48, -26.98)
CIE-LCHlch(49.92, 29.73, 245.18°)
OKLaboklab(56.28% -0.061 -0.0758)
OKLCHoklch(56.28% 0.097 231.2)
XYZxyz(15.2424, 18.3495, 37.8533)
Luminance0.1835 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7FA4 #A44F2A
analogous
#2AA48C #2A7FA4 #2A42A4
triadic
#2A7FA4 #A42A7F #7FA42A
tetradic
#2A7FA4 #8C2AA4 #A44F2A #42A42A
square
#2A7FA4 #8C2AA4 #A44F2A #42A42A
split-complementary
#2A7FA4 #A42A42 #A48C2A
monochromatic
#113443 #1E5973 #2A7FA4 #3EA2CD #6EB9DA

Accessibility & contrast

On white

4.50
#2A7FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#2A7FA4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A7FA4
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7FA4#FFFFFF#000000##000000
##2A7FA41.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C7DA6
Deuteranopia (green-blind)
#5C72A3
Tritanopia (blue-blind)
#00898B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #2a7fa4;
/* rgb */ color: rgb(42, 127, 164);
/* oklch */ color: oklch(56.3% 0.097 231.2);
Tailwind
colors: {
  custom: {
    50: '#75a4bf',
    500: '#2a7fa4',
    950: '#000000',
  },
}
SCSS
$custom: #2a7fa4;
$custom-light: #75a4bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7fa4",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 164
  },
  "hsl": {
    "h": 198.197,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.56284,
    "c": 0.09734,
    "h": 231.2
  },
  "luminance": 0.18351
}

Semantic roles & 50–950 ramp

primary
#2A7FA4
secondary
#C18469
accent
#7545E2
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#090F12
muted
#7B7F81

Preview Lab

Preview with #2A7FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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