#2A7BAD#2A7BAD

#2A7BAD is a mid, moderate cyan. Relative luminance 0.177; OKLCH L 55.8% C 0.109 H 240.3°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#2A7BAD
RGBrgb(42, 123, 173)
HSLhsl(203, 61%, 42%)
HSVhsv(203, 76%, 68%)
CMYKcmyk(75.7%, 28.9%, 0%, 32.2%)
CIE-LABlab(49.10, -6.97, -33.49)
CIE-LCHlch(49.10, 34.20, 258.25°)
OKLaboklab(55.77% -0.0539 -0.0947)
OKLCHoklch(55.77% 0.109 240.3)
XYZxyz(15.5777, 17.6735, 42.1174)
Luminance0.1767 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7BAD #AD5C2A
analogous
#2AAD9E #2A7BAD #2A39AD
triadic
#2A7BAD #AD2A7B #7BAD2A
tetradic
#2A7BAD #9E2AAD #AD5C2A #39AD2A
square
#2A7BAD #9E2AAD #AD5C2A #39AD2A
split-complementary
#2A7BAD #AD2A39 #AD9E2A
monochromatic
#12354B #1E587C #2A7BAD #439BD1 #74B5DD

Accessibility & contrast

On white

4.63
#2A7BAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#2A7BAD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7BAD
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7BAD#FFFFFF#000000##FFFFFF
##2A7BAD1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#647CAF
Deuteranopia (green-blind)
#526FAC
Tritanopia (blue-blind)
#00878C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2a7bad;
/* rgb */ color: rgb(42, 123, 173);
/* oklch */ color: oklch(55.8% 0.109 240.3);
Tailwind
colors: {
  custom: {
    50: '#76a1c5',
    500: '#2a7bad',
    950: '#000000',
  },
}
SCSS
$custom: #2a7bad;
$custom-light: #76a1c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7bad",
  "rgb": {
    "r": 42,
    "g": 123,
    "b": 173
  },
  "hsl": {
    "h": 202.901,
    "s": 60.93,
    "l": 42.157
  },
  "oklch": {
    "l": 0.55766,
    "c": 0.10897,
    "h": 240.3
  },
  "luminance": 0.17675
}

Semantic roles & 50–950 ramp

primary
#2A7BAD
secondary
#C58F6E
accent
#8144E4
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2A7BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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