#2A7FB0#2A7FB0

#2A7FB0 is a mid, moderate cyan. Relative luminance 0.188; OKLCH L 56.9% C 0.109 H 238.7°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#2A7FB0
RGBrgb(42, 127, 176)
HSLhsl(202, 61%, 43%)
HSVhsv(202, 76%, 69%)
CMYKcmyk(76.1%, 27.8%, 0%, 31%)
CIE-LABlab(50.46, -8.22, -33.09)
CIE-LCHlch(50.46, 34.10, 256.05°)
OKLaboklab(56.89% -0.0568 -0.0935)
OKLCHoklch(56.89% 0.109 238.7)
XYZxyz(16.3776, 18.8036, 43.8322)
Luminance0.1881 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7FB0 #B05B2A
analogous
#2AB09E #2A7FB0 #2A3CB0
triadic
#2A7FB0 #B02A7F #7FB02A
tetradic
#2A7FB0 #9E2AB0 #B05B2A #3CB02A
square
#2A7FB0 #9E2AB0 #B05B2A #3CB02A
split-complementary
#2A7FB0 #B02A3C #B09E2A
monochromatic
#12384D #1E5B7F #2A7FB0 #459FD3 #76B8DE

Accessibility & contrast

On white

4.41
#2A7FB0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#2A7FB0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A7FB0
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7FB0#FFFFFF#000000##000000
##2A7FB01.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#687FB2
Deuteranopia (green-blind)
#5672AF
Tritanopia (blue-blind)
#008B90
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2a7fb0;
/* rgb */ color: rgb(42, 127, 176);
/* oklch */ color: oklch(56.9% 0.109 238.7);
Tailwind
colors: {
  custom: {
    50: '#77a4c8',
    500: '#2a7fb0',
    950: '#000000',
  },
}
SCSS
$custom: #2a7fb0;
$custom-light: #77a4c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7fb0",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 176
  },
  "hsl": {
    "h": 201.94,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.56891,
    "c": 0.10941,
    "h": 238.7
  },
  "luminance": 0.18806
}

Semantic roles & 50–950 ramp

primary
#2A7FB0
secondary
#C68F70
accent
#7E43E5
background
#F7FAFC
surface
#EEF3F8
border
#C9CDD1
text
#0A0F13
muted
#7C7F82

Preview Lab

Preview with #2A7FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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