#2A7EB8#2A7EB8

#2A7EB8 is a mid, moderate cyan. Relative luminance 0.189; OKLCH L 57.1% C 0.119 H 243.4°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#2A7EB8
RGBrgb(42, 126, 184)
HSLhsl(205, 63%, 44%)
HSVhsv(205, 77%, 72%)
CMYKcmyk(77.2%, 31.5%, 0%, 27.8%)
CIE-LABlab(50.54, -4.73, -37.58)
CIE-LCHlch(50.54, 37.88, 262.82°)
OKLaboklab(57.08% -0.0533 -0.1066)
OKLCHoklch(57.08% 0.119 243.4)
XYZxyz(17.0641, 18.8726, 48.0815)
Luminance0.1888 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7EB8 #B8642A
analogous
#2AB8AB #2A7EB8 #2A37B8
triadic
#2A7EB8 #B82A7E #7EB82A
tetradic
#2A7EB8 #AB2AB8 #B8642A #37B82A
square
#2A7EB8 #AB2AB8 #B8642A #37B82A
split-complementary
#2A7EB8 #B82A37 #B8AB2A
monochromatic
#133A54 #1F5C86 #2A7EB8 #4A9CD6 #7BB7E1

Accessibility & contrast

On white

4.40
#2A7EB8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#2A7EB8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A7EB8
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7EB8#FFFFFF#000000##000000
##2A7EB81.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6380BB
Deuteranopia (green-blind)
#4F72B7
Tritanopia (blue-blind)
#008C93
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2a7eb8;
/* rgb */ color: rgb(42, 126, 184);
/* oklch */ color: oklch(57.1% 0.119 243.4);
Tailwind
colors: {
  custom: {
    50: '#78a3cd',
    500: '#2a7eb8',
    950: '#000000',
  },
}
SCSS
$custom: #2a7eb8;
$custom-light: #78a3cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7eb8",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 184
  },
  "hsl": {
    "h": 204.507,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.57081,
    "c": 0.11915,
    "h": 243.4
  },
  "luminance": 0.18875
}

Semantic roles & 50–950 ramp

primary
#2A7EB8
secondary
#C99775
accent
#8542E6
background
#F8FAFC
surface
#EFF3F9
border
#CACDD2
text
#0A0F13
muted
#7C7F82

Preview Lab

Preview with #2A7EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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