#2A7FB3#2A7FB3

#2A7FB3 is a mid, moderate cyan. Relative luminance 0.189; OKLCH L 57.0% C 0.113 H 240.3°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#2A7FB3
RGBrgb(42, 127, 179)
HSLhsl(203, 62%, 43%)
HSVhsv(203, 77%, 70%)
CMYKcmyk(76.5%, 29.1%, 0%, 29.8%)
CIE-LABlab(50.60, -7.14, -34.61)
CIE-LCHlch(50.60, 35.33, 258.34°)
OKLaboklab(57.05% -0.0558 -0.0979)
OKLCHoklch(57.05% 0.113 240.3)
XYZxyz(16.6777, 18.9237, 45.4127)
Luminance0.1893 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7FB3 #B35E2A
analogous
#2AB3A2 #2A7FB3 #2A3AB3
triadic
#2A7FB3 #B32A7F #7FB32A
tetradic
#2A7FB3 #A22AB3 #B35E2A #3AB32A
square
#2A7FB3 #A22AB3 #B35E2A #3AB32A
split-complementary
#2A7FB3 #B32A3A #B3A22A
monochromatic
#133950 #1E5C81 #2A7FB3 #469ED4 #78B8DF

Accessibility & contrast

On white

4.39
#2A7FB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#2A7FB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A7FB3
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7FB3#FFFFFF#000000##000000
##2A7FB31.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6780B5
Deuteranopia (green-blind)
#5473B2
Tritanopia (blue-blind)
#008C91
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2a7fb3;
/* rgb */ color: rgb(42, 127, 179);
/* oklch */ color: oklch(57.0% 0.113 240.3);
Tailwind
colors: {
  custom: {
    50: '#77a4ca',
    500: '#2a7fb3',
    950: '#000000',
  },
}
SCSS
$custom: #2a7fb3;
$custom-light: #77a4ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7fb3",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 179
  },
  "hsl": {
    "h": 202.774,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.57049,
    "c": 0.11269,
    "h": 240.3
  },
  "luminance": 0.18926
}

Semantic roles & 50–950 ramp

primary
#2A7FB3
secondary
#C79272
accent
#8043E5
background
#F7FAFC
surface
#EEF3F8
border
#C9CDD1
text
#0A0F13
muted
#7C7F82

Preview Lab

Preview with #2A7FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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