#2A7FB7#2A7FB7

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

Color values

HEX#2A7FB7
RGBrgb(42, 127, 183)
HSLhsl(204, 63%, 44%)
HSVhsv(204, 77%, 72%)
CMYKcmyk(77%, 30.6%, 0%, 28.2%)
CIE-LABlab(50.79, -5.69, -36.61)
CIE-LCHlch(50.79, 37.05, 261.17°)
OKLaboklab(57.26% -0.0546 -0.1037)
OKLCHoklch(57.26% 0.117 242.3)
XYZxyz(17.0881, 19.0879, 47.5743)
Luminance0.1909 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7FB7 #B7622A
analogous
#2AB7A9 #2A7FB7 #2A38B7
triadic
#2A7FB7 #B72A7F #7FB72A
tetradic
#2A7FB7 #A92AB7 #B7622A #38B72A
square
#2A7FB7 #A92AB7 #B7622A #38B72A
split-complementary
#2A7FB7 #B72A38 #B7A92A
monochromatic
#133A53 #1F5C85 #2A7FB7 #499ED5 #7BB8E1

Accessibility & contrast

On white

4.36
#2A7FB7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#2A7FB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A7FB7
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7FB7#FFFFFF#000000##000000
##2A7FB71.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6580B9
Deuteranopia (green-blind)
#5173B6
Tritanopia (blue-blind)
#008D93
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #2a7fb7;
/* rgb */ color: rgb(42, 127, 183);
/* oklch */ color: oklch(57.3% 0.117 242.3);
Tailwind
colors: {
  custom: {
    50: '#78a3cd',
    500: '#2a7fb7',
    950: '#000000',
  },
}
SCSS
$custom: #2a7fb7;
$custom-light: #78a3cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7fb7",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 183
  },
  "hsl": {
    "h": 203.83,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.57264,
    "c": 0.11719,
    "h": 242.3
  },
  "luminance": 0.1909
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A7FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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