#2A7FB8#2A7FB8

#2A7FB8 is a mid, moderate cyan. Relative luminance 0.191; OKLCH L 57.3% C 0.118 H 242.7°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#2A7FB8
RGBrgb(42, 127, 184)
HSLhsl(204, 63%, 44%)
HSVhsv(204, 77%, 72%)
CMYKcmyk(77.2%, 31%, 0%, 27.8%)
CIE-LABlab(50.84, -5.32, -37.11)
CIE-LCHlch(50.84, 37.49, 261.84°)
OKLaboklab(57.32% -0.0542 -0.1052)
OKLCHoklch(57.32% 0.118 242.7)
XYZxyz(17.1926, 19.1296, 48.1244)
Luminance0.1913 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7FB8 #B8632A
analogous
#2AB8AA #2A7FB8 #2A38B8
triadic
#2A7FB8 #B82A7F #7FB82A
tetradic
#2A7FB8 #AA2AB8 #B8632A #38B82A
square
#2A7FB8 #AA2AB8 #B8632A #38B82A
split-complementary
#2A7FB8 #B82A38 #B8AA2A
monochromatic
#133A54 #1F5D86 #2A7FB8 #4A9DD6 #7BB8E1

Accessibility & contrast

On white

4.35
#2A7FB8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#2A7FB8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A7FB8
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7FB8#FFFFFF#000000##000000
##2A7FB81.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6480BA
Deuteranopia (green-blind)
#5173B7
Tritanopia (blue-blind)
#008D93
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #2a7fb8;
/* rgb */ color: rgb(42, 127, 184);
/* oklch */ color: oklch(57.3% 0.118 242.7);
Tailwind
colors: {
  custom: {
    50: '#78a3cd',
    500: '#2a7fb8',
    950: '#000000',
  },
}
SCSS
$custom: #2a7fb8;
$custom-light: #78a3cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7fb8",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 184
  },
  "hsl": {
    "h": 204.085,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.57319,
    "c": 0.11833,
    "h": 242.7
  },
  "luminance": 0.19132
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A7FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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