#2A7FA5#2A7FA5

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

Color values

HEX#2A7FA5
RGBrgb(42, 127, 165)
HSLhsl(199, 59%, 41%)
HSVhsv(199, 75%, 65%)
CMYKcmyk(74.5%, 23%, 0%, 35.3%)
CIE-LABlab(49.96, -12.13, -27.49)
CIE-LCHlch(49.96, 30.05, 246.20°)
OKLaboklab(56.33% -0.0607 -0.0773)
OKLCHoklch(56.33% 0.098 231.9)
XYZxyz(15.3330, 18.3858, 38.3307)
Luminance0.1839 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7FA5 #A5502A
analogous
#2AA58D #2A7FA5 #2A41A5
triadic
#2A7FA5 #A52A7F #7FA52A
tetradic
#2A7FA5 #8D2AA5 #A5502A #41A52A
square
#2A7FA5 #8D2AA5 #A5502A #41A52A
split-complementary
#2A7FA5 #A52A41 #A58D2A
monochromatic
#113443 #1E5974 #2A7FA5 #3EA2CE #6FB9DA

Accessibility & contrast

On white

4.49
#2A7FA5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#2A7FA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A7FA5
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7FA5#FFFFFF#000000##000000
##2A7FA51.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C7EA7
Deuteranopia (green-blind)
#5B72A4
Tritanopia (blue-blind)
#00898C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #2a7fa5;
/* rgb */ color: rgb(42, 127, 165);
/* oklch */ color: oklch(56.3% 0.098 231.9);
Tailwind
colors: {
  custom: {
    50: '#75a4c0',
    500: '#2a7fa5',
    950: '#000000',
  },
}
SCSS
$custom: #2a7fa5;
$custom-light: #75a4c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7fa5",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 165
  },
  "hsl": {
    "h": 198.537,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.56333,
    "c": 0.09827,
    "h": 231.9
  },
  "luminance": 0.18388
}

Semantic roles & 50–950 ramp

primary
#2A7FA5
secondary
#C18569
accent
#7645E3
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A0F12
muted
#7C7F81

Preview Lab

Preview with #2A7FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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