#2A7EB1#2A7EB1

#2A7EB1 is a mid, moderate cyan. Relative luminance 0.186; OKLCH L 56.7% C 0.111 H 240.1°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#2A7EB1
RGBrgb(42, 126, 177)
HSLhsl(203, 62%, 43%)
HSVhsv(203, 76%, 69%)
CMYKcmyk(76.3%, 28.8%, 0%, 30.6%)
CIE-LABlab(50.20, -7.28, -34.08)
CIE-LCHlch(50.20, 34.84, 257.95°)
OKLaboklab(56.7% -0.0555 -0.0964)
OKLCHoklch(56.7% 0.111 240.1)
XYZxyz(16.3484, 18.5863, 44.3124)
Luminance0.1859 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7EB1 #B15D2A
analogous
#2AB1A1 #2A7EB1 #2A3AB1
triadic
#2A7EB1 #B12A7E #7EB12A
tetradic
#2A7EB1 #A12AB1 #B15D2A #3AB12A
square
#2A7EB1 #A12AB1 #B15D2A #3AB12A
split-complementary
#2A7EB1 #B12A3A #B1A12A
monochromatic
#13384E #1E5B80 #2A7EB1 #459DD3 #77B7DF

Accessibility & contrast

On white

4.45
#2A7EB1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#2A7EB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A7EB1
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7EB1#FFFFFF#000000##000000
##2A7EB11.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#667EB3
Deuteranopia (green-blind)
#5472B0
Tritanopia (blue-blind)
#008B90
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #2a7eb1;
/* rgb */ color: rgb(42, 126, 177);
/* oklch */ color: oklch(56.7% 0.111 240.1);
Tailwind
colors: {
  custom: {
    50: '#77a3c8',
    500: '#2a7eb1',
    950: '#000000',
  },
}
SCSS
$custom: #2a7eb1;
$custom-light: #77a3c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7eb1",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 177
  },
  "hsl": {
    "h": 202.667,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.56702,
    "c": 0.11121,
    "h": 240.1
  },
  "luminance": 0.18588
}

Semantic roles & 50–950 ramp

primary
#2A7EB1
secondary
#C69170
accent
#8043E5
background
#F7FAFC
surface
#EEF3F8
border
#C9CDD1
text
#0A0F13
muted
#7C7F82

Preview Lab

Preview with #2A7EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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