#2A7EB7#2A7EB7

#2A7EB7 is a mid, moderate cyan. Relative luminance 0.188; OKLCH L 57.0% C 0.118 H 243.0°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#2A7EB7
RGBrgb(42, 126, 183)
HSLhsl(204, 63%, 44%)
HSVhsv(204, 77%, 72%)
CMYKcmyk(77%, 31.1%, 0%, 28.2%)
CIE-LABlab(50.49, -5.10, -37.08)
CIE-LCHlch(50.49, 37.43, 262.17°)
OKLaboklab(57.03% -0.0536 -0.1051)
OKLCHoklch(57.03% 0.118 243)
XYZxyz(16.9596, 18.8308, 47.5314)
Luminance0.1883 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7EB7 #B7632A
analogous
#2AB7AA #2A7EB7 #2A38B7
triadic
#2A7EB7 #B72A7E #7EB72A
tetradic
#2A7EB7 #AA2AB7 #B7632A #38B72A
square
#2A7EB7 #AA2AB7 #B7632A #38B72A
split-complementary
#2A7EB7 #B72A38 #B7AA2A
monochromatic
#133953 #1F5C85 #2A7EB7 #499DD5 #7BB7E1

Accessibility & contrast

On white

4.41
#2A7EB7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#2A7EB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A7EB7
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7EB7#FFFFFF#000000##000000
##2A7EB71.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#647FB9
Deuteranopia (green-blind)
#5072B6
Tritanopia (blue-blind)
#008C92
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2a7eb7;
/* rgb */ color: rgb(42, 126, 183);
/* oklch */ color: oklch(57.0% 0.118 243.0);
Tailwind
colors: {
  custom: {
    50: '#78a3cd',
    500: '#2a7eb7',
    950: '#000000',
  },
}
SCSS
$custom: #2a7eb7;
$custom-light: #78a3cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7eb7",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 183
  },
  "hsl": {
    "h": 204.255,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.57026,
    "c": 0.11799,
    "h": 243
  },
  "luminance": 0.18833
}

Semantic roles & 50–950 ramp

primary
#2A7EB7
secondary
#C99674
accent
#8442E6
background
#F7FAFC
surface
#EEF3F9
border
#C9CDD2
text
#0A0F13
muted
#7C7F82

Preview Lab

Preview with #2A7EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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