#2A7FB5#2A7FB5

#2A7FB5 is a mid, moderate cyan. Relative luminance 0.190; OKLCH L 57.2% C 0.115 H 241.3°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#2A7FB5
RGBrgb(42, 127, 181)
HSLhsl(203, 62%, 44%)
HSVhsv(203, 77%, 71%)
CMYKcmyk(76.8%, 29.8%, 0%, 29%)
CIE-LABlab(50.69, -6.41, -35.61)
CIE-LCHlch(50.69, 36.18, 259.79°)
OKLaboklab(57.16% -0.0552 -0.1008)
OKLCHoklch(57.16% 0.115 241.3)
XYZxyz(16.8814, 19.0052, 46.4858)
Luminance0.1901 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7FB5 #B5602A
analogous
#2AB5A5 #2A7FB5 #2A3AB5
triadic
#2A7FB5 #B52A7F #7FB52A
tetradic
#2A7FB5 #A52AB5 #B5602A #3AB52A
square
#2A7FB5 #A52AB5 #B5602A #3AB52A
split-complementary
#2A7FB5 #B52A3A #B5A52A
monochromatic
#133952 #1E5C83 #2A7FB5 #489ED4 #79B8E0

Accessibility & contrast

On white

4.37
#2A7FB5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#2A7FB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A7FB5
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7FB5#FFFFFF#000000##000000
##2A7FB51.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6680B7
Deuteranopia (green-blind)
#5373B4
Tritanopia (blue-blind)
#008C92
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #2a7fb5;
/* rgb */ color: rgb(42, 127, 181);
/* oklch */ color: oklch(57.2% 0.115 241.3);
Tailwind
colors: {
  custom: {
    50: '#78a3cb',
    500: '#2a7fb5',
    950: '#000000',
  },
}
SCSS
$custom: #2a7fb5;
$custom-light: #78a3cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7fb5",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 181
  },
  "hsl": {
    "h": 203.309,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.57156,
    "c": 0.11493,
    "h": 241.3
  },
  "luminance": 0.19007
}

Semantic roles & 50–950 ramp

primary
#2A7FB5
secondary
#C89473
accent
#8242E5
background
#F7FAFC
surface
#EEF3F8
border
#C9CDD1
text
#0A0F13
muted
#7C7F82

Preview Lab

Preview with #2A7FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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