#2A7FA2#2A7FA2

#2A7FA2 is a mid, moderate cyan. Relative luminance 0.183; OKLCH L 56.2% C 0.096 H 229.7°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#2A7FA2
RGBrgb(42, 127, 162)
HSLhsl(198, 59%, 40%)
HSVhsv(198, 74%, 64%)
CMYKcmyk(74.1%, 21.6%, 0%, 36.5%)
CIE-LABlab(49.83, -13.18, -25.95)
CIE-LCHlch(49.83, 29.10, 243.08°)
OKLaboklab(56.19% -0.0618 -0.0729)
OKLCHoklch(56.19% 0.096 229.7)
XYZxyz(15.0632, 18.2779, 36.9095)
Luminance0.1828 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7FA2 #A24D2A
analogous
#2AA289 #2A7FA2 #2A43A2
triadic
#2A7FA2 #A22A7F #7FA22A
tetradic
#2A7FA2 #892AA2 #A24D2A #43A22A
square
#2A7FA2 #892AA2 #A24D2A #43A22A
split-complementary
#2A7FA2 #A22A43 #A2892A
monochromatic
#113341 #1D5971 #2A7FA2 #3DA3CD #6DBAD9

Accessibility & contrast

On white

4.51
#2A7FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#2A7FA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A7FA2
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7FA2#FFFFFF#000000##000000
##2A7FA21.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D7DA4
Deuteranopia (green-blind)
#5D71A2
Tritanopia (blue-blind)
#00898B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2a7fa2;
/* rgb */ color: rgb(42, 127, 162);
/* oklch */ color: oklch(56.2% 0.096 229.7);
Tailwind
colors: {
  custom: {
    50: '#75a4bd',
    500: '#2a7fa2',
    950: '#000000',
  },
}
SCSS
$custom: #2a7fa2;
$custom-light: #75a4bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7fa2",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 162
  },
  "hsl": {
    "h": 197.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.56187,
    "c": 0.09553,
    "h": 229.7
  },
  "luminance": 0.1828
}

Semantic roles & 50–950 ramp

primary
#2A7FA2
secondary
#C08268
accent
#7346E2
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#090F12
muted
#7B7F81

Preview Lab

Preview with #2A7FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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