#2A7EB3#2A7EB3

#2A7EB3 is a mid, moderate cyan. Relative luminance 0.187; OKLCH L 56.8% C 0.113 H 241.1°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#2A7EB3
RGBrgb(42, 126, 179)
HSLhsl(203, 62%, 43%)
HSVhsv(203, 77%, 70%)
CMYKcmyk(76.5%, 29.6%, 0%, 29.8%)
CIE-LABlab(50.30, -6.55, -35.08)
CIE-LCHlch(50.30, 35.69, 259.42°)
OKLaboklab(56.81% -0.0549 -0.0993)
OKLCHoklch(56.81% 0.113 241.1)
XYZxyz(16.5492, 18.6667, 45.3699)
Luminance0.1867 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7EB3 #B35F2A
analogous
#2AB3A3 #2A7EB3 #2A39B3
triadic
#2A7EB3 #B32A7E #7EB32A
tetradic
#2A7EB3 #A32AB3 #B35F2A #39B32A
square
#2A7EB3 #A32AB3 #B35F2A #39B32A
split-complementary
#2A7EB3 #B32A39 #B3A32A
monochromatic
#133850 #1E5B81 #2A7EB3 #469DD4 #78B7DF

Accessibility & contrast

On white

4.44
#2A7EB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#2A7EB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A7EB3
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7EB3#FFFFFF#000000##000000
##2A7EB31.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#657FB5
Deuteranopia (green-blind)
#5272B2
Tritanopia (blue-blind)
#008B91
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2a7eb3;
/* rgb */ color: rgb(42, 126, 179);
/* oklch */ color: oklch(56.8% 0.113 241.1);
Tailwind
colors: {
  custom: {
    50: '#77a3ca',
    500: '#2a7eb3',
    950: '#000000',
  },
}
SCSS
$custom: #2a7eb3;
$custom-light: #77a3ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7eb3",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 179
  },
  "hsl": {
    "h": 203.212,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.56809,
    "c": 0.11344,
    "h": 241.1
  },
  "luminance": 0.18669
}

Semantic roles & 50–950 ramp

primary
#2A7EB3
secondary
#C79372
accent
#8243E5
background
#F7FAFC
surface
#EEF3F8
border
#C9CDD1
text
#0A0F13
muted
#7C7F82

Preview Lab

Preview with #2A7EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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