#2A7FB9#2A7FB9

#2A7FB9 is a mid, moderate cyan. Relative luminance 0.192; OKLCH L 57.4% C 0.119 H 243.2°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#2A7FB9
RGBrgb(42, 127, 185)
HSLhsl(204, 63%, 45%)
HSVhsv(204, 77%, 73%)
CMYKcmyk(77.3%, 31.4%, 0%, 27.5%)
CIE-LABlab(50.89, -4.96, -37.61)
CIE-LCHlch(50.89, 37.93, 262.49°)
OKLaboklab(57.37% -0.0539 -0.1066)
OKLCHoklch(57.37% 0.119 243.2)
XYZxyz(17.2978, 19.1717, 48.6784)
Luminance0.1917 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7FB9 #B9642A
analogous
#2AB9AC #2A7FB9 #2A37B9
triadic
#2A7FB9 #B92A7F #7FB92A
tetradic
#2A7FB9 #AC2AB9 #B9642A #37B92A
square
#2A7FB9 #AC2AB9 #B9642A #37B92A
split-complementary
#2A7FB9 #B92A37 #B9AC2A
monochromatic
#133B55 #1F5D87 #2A7FB9 #4A9DD6 #7CB8E1

Accessibility & contrast

On white

4.34
#2A7FB9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7FB9#FFFFFF#000000##000000
##2A7FB91.004.344.834.83
#FFFFFF4.341.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6480BC
Deuteranopia (green-blind)
#5073B8
Tritanopia (blue-blind)
#008D94
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #2a7fb9;
/* rgb */ color: rgb(42, 127, 185);
/* oklch */ color: oklch(57.4% 0.119 243.2);
Tailwind
colors: {
  custom: {
    50: '#79a3ce',
    500: '#2a7fb9',
    950: '#000000',
  },
}
SCSS
$custom: #2a7fb9;
$custom-light: #79a3ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7fb9",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 185
  },
  "hsl": {
    "h": 204.336,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.57374,
    "c": 0.11949,
    "h": 243.2
  },
  "luminance": 0.19174
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A7FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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