#2C7FAB#2C7FAB

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

Color values

HEX#2C7FAB
RGBrgb(44, 127, 171)
HSLhsl(201, 59%, 42%)
HSVhsv(201, 74%, 67%)
CMYKcmyk(74.3%, 25.7%, 0%, 32.9%)
CIE-LABlab(50.28, -9.74, -30.48)
CIE-LCHlch(50.28, 32.00, 252.27°)
OKLaboklab(56.69% -0.0575 -0.0859)
OKLCHoklch(56.69% 0.103 236.2)
XYZxyz(15.9759, 18.6526, 41.2785)
Luminance0.1865 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7FAB #AB582C
analogous
#2CAB97 #2C7FAB #2C40AB
triadic
#2C7FAB #AB2C7F #7FAB2C
tetradic
#2C7FAB #972CAB #AB582C #40AB2C
square
#2C7FAB #972CAB #AB582C #40AB2C
split-complementary
#2C7FAB #AB2C40 #AB972C
monochromatic
#13374A #1F5B7A #2C7FAB #459FCF #76B8DC

Accessibility & contrast

On white

4.44
#2C7FAB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#2C7FAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2C7FAB
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7FAB#FFFFFF#000000##000000
##2C7FAB1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c7fab;
/* rgb */ color: rgb(44, 127, 171);
/* oklch */ color: oklch(56.7% 0.103 236.2);
Tailwind
colors: {
  custom: {
    50: '#77a4c4',
    500: '#2c7fab',
    950: '#000000',
  },
}
SCSS
$custom: #2c7fab;
$custom-light: #77a4c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7fab",
  "rgb": {
    "r": 44,
    "g": 127,
    "b": 171
  },
  "hsl": {
    "h": 200.787,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.56688,
    "c": 0.10337,
    "h": 236.2
  },
  "luminance": 0.18654
}

Semantic roles & 50–950 ramp

primary
#2C7FAB
secondary
#C38C6F
accent
#7C46E2
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A0F12
muted
#7C7F81

Preview Lab

Preview with #2C7FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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