#2A7FAB#2A7FAB

#2A7FAB is a mid, moderate cyan. Relative luminance 0.186; OKLCH L 56.6% C 0.104 H 235.8°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#2A7FAB
RGBrgb(42, 127, 171)
HSLhsl(200, 61%, 42%)
HSVhsv(200, 75%, 67%)
CMYKcmyk(75.4%, 25.7%, 0%, 32.9%)
CIE-LABlab(50.23, -10.01, -30.56)
CIE-LCHlch(50.23, 32.16, 251.87°)
OKLaboklab(56.63% -0.0585 -0.0862)
OKLCHoklch(56.63% 0.104 235.8)
XYZxyz(15.8920, 18.6094, 41.2746)
Luminance0.1861 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7FAB #AB562A
analogous
#2AAB97 #2A7FAB #2A3FAB
triadic
#2A7FAB #AB2A7F #7FAB2A
tetradic
#2A7FAB #972AAB #AB562A #3FAB2A
square
#2A7FAB #972AAB #AB562A #3FAB2A
split-complementary
#2A7FAB #AB2A3F #AB972A
monochromatic
#123649 #1E5B7A #2A7FAB #42A0D1 #73B9DD

Accessibility & contrast

On white

4.45
#2A7FAB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#2A7FAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A7FAB
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7FAB#FFFFFF#000000##000000
##2A7FAB1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A7EAD
Deuteranopia (green-blind)
#5872AA
Tritanopia (blue-blind)
#008A8E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #2a7fab;
/* rgb */ color: rgb(42, 127, 171);
/* oklch */ color: oklch(56.6% 0.104 235.8);
Tailwind
colors: {
  custom: {
    50: '#76a4c4',
    500: '#2a7fab',
    950: '#000000',
  },
}
SCSS
$custom: #2a7fab;
$custom-light: #76a4c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7fab",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 171
  },
  "hsl": {
    "h": 200.465,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.56633,
    "c": 0.10416,
    "h": 235.8
  },
  "luminance": 0.18611
}

Semantic roles & 50–950 ramp

primary
#2A7FAB
secondary
#C48B6D
accent
#7B44E4
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A0F12
muted
#7C7F81

Preview Lab

Preview with #2A7FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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