#2A7CAB#2A7CAB

#2A7CAB is a mid, moderate cyan. Relative luminance 0.178; OKLCH L 55.9% C 0.106 H 238.4°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#2A7CAB
RGBrgb(42, 124, 171)
HSLhsl(202, 61%, 42%)
HSVhsv(202, 75%, 67%)
CMYKcmyk(75.4%, 27.5%, 0%, 32.9%)
CIE-LABlab(49.31, -8.27, -32.00)
CIE-LCHlch(49.31, 33.05, 255.50°)
OKLaboklab(55.9% -0.0556 -0.0903)
OKLCHoklch(55.9% 0.106 238.4)
XYZxyz(15.5103, 17.8460, 41.1474)
Luminance0.1785 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7CAB #AB592A
analogous
#2AAB99 #2A7CAB #2A3CAB
triadic
#2A7CAB #AB2A7C #7CAB2A
tetradic
#2A7CAB #992AAB #AB592A #3CAB2A
square
#2A7CAB #992AAB #AB592A #3CAB2A
split-complementary
#2A7CAB #AB2A3C #AB992A
monochromatic
#123549 #1E587A #2A7CAB #429CD1 #73B6DD

Accessibility & contrast

On white

4.60
#2A7CAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#2A7CAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7CAB
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7CAB#FFFFFF#000000##FFFFFF
##2A7CAB1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#667CAD
Deuteranopia (green-blind)
#5470AA
Tritanopia (blue-blind)
#00888C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2a7cab;
/* rgb */ color: rgb(42, 124, 171);
/* oklch */ color: oklch(55.9% 0.106 238.4);
Tailwind
colors: {
  custom: {
    50: '#76a1c4',
    500: '#2a7cab',
    950: '#000000',
  },
}
SCSS
$custom: #2a7cab;
$custom-light: #76a1c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7cab",
  "rgb": {
    "r": 42,
    "g": 124,
    "b": 171
  },
  "hsl": {
    "h": 201.86,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.55903,
    "c": 0.10607,
    "h": 238.4
  },
  "luminance": 0.17848
}

Semantic roles & 50–950 ramp

primary
#2A7CAB
secondary
#C48D6D
accent
#7E44E4
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0F12
muted
#7C7E81

Preview Lab

Preview with #2A7CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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