#2A7EB5#2A7EB5

#2A7EB5 is a mid, moderate cyan. Relative luminance 0.188; OKLCH L 56.9% C 0.116 H 242.0°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#2A7EB5
RGBrgb(42, 126, 181)
HSLhsl(204, 62%, 44%)
HSVhsv(204, 77%, 71%)
CMYKcmyk(76.8%, 30.4%, 0%, 29%)
CIE-LABlab(50.39, -5.83, -36.08)
CIE-LCHlch(50.39, 36.55, 260.82°)
OKLaboklab(56.92% -0.0542 -0.1022)
OKLCHoklch(56.92% 0.116 242)
XYZxyz(16.7529, 18.7482, 46.4429)
Luminance0.1875 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7EB5 #B5612A
analogous
#2AB5A6 #2A7EB5 #2A38B5
triadic
#2A7EB5 #B52A7E #7EB52A
tetradic
#2A7EB5 #A62AB5 #B5612A #38B52A
square
#2A7EB5 #A62AB5 #B5612A #38B52A
split-complementary
#2A7EB5 #B52A38 #B5A62A
monochromatic
#133952 #1E5B83 #2A7EB5 #489DD4 #79B7E0

Accessibility & contrast

On white

4.42
#2A7EB5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#2A7EB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A7EB5
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7EB5#FFFFFF#000000##000000
##2A7EB51.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#647FB7
Deuteranopia (green-blind)
#5172B4
Tritanopia (blue-blind)
#008C91
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2a7eb5;
/* rgb */ color: rgb(42, 126, 181);
/* oklch */ color: oklch(56.9% 0.116 242.0);
Tailwind
colors: {
  custom: {
    50: '#78a3cb',
    500: '#2a7eb5',
    950: '#000000',
  },
}
SCSS
$custom: #2a7eb5;
$custom-light: #78a3cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7eb5",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 181
  },
  "hsl": {
    "h": 203.741,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.56917,
    "c": 0.1157,
    "h": 242
  },
  "luminance": 0.1875
}

Semantic roles & 50–950 ramp

primary
#2A7EB5
secondary
#C89573
accent
#8342E5
background
#F7FAFC
surface
#EEF3F8
border
#C9CDD1
text
#0A0F13
muted
#7C7F82

Preview Lab

Preview with #2A7EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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