#2A7AAA#2A7AAA

#2A7AAA is a mid, moderate cyan. Relative luminance 0.173; OKLCH L 55.4% C 0.106 H 239.5°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#2A7AAA
RGBrgb(42, 122, 170)
HSLhsl(203, 60%, 42%)
HSVhsv(203, 75%, 67%)
CMYKcmyk(75.3%, 28.2%, 0%, 33.3%)
CIE-LABlab(48.65, -7.46, -32.44)
CIE-LCHlch(48.65, 33.29, 257.04°)
OKLaboklab(55.36% -0.0539 -0.0917)
OKLCHoklch(55.36% 0.106 239.5)
XYZxyz(15.1672, 17.3118, 40.5646)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7AAA #AA5A2A
analogous
#2AAA9A #2A7AAA #2A3AAA
triadic
#2A7AAA #AA2A7A #7AAA2A
tetradic
#2A7AAA #9A2AAA #AA5A2A #3AAA2A
square
#2A7AAA #9A2AAA #AA5A2A #3AAA2A
split-complementary
#2A7AAA #AA2A3A #AA9A2A
monochromatic
#123448 #1E5779 #2A7AAA #419AD0 #72B4DC

Accessibility & contrast

On white

4.71
#2A7AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#2A7AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7AAA
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7AAA#FFFFFF#000000##FFFFFF
##2A7AAA1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#637AAC
Deuteranopia (green-blind)
#526EA9
Tritanopia (blue-blind)
#00868B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2a7aaa;
/* rgb */ color: rgb(42, 122, 170);
/* oklch */ color: oklch(55.4% 0.106 239.5);
Tailwind
colors: {
  custom: {
    50: '#76a0c3',
    500: '#2a7aaa',
    950: '#000000',
  },
}
SCSS
$custom: #2a7aaa;
$custom-light: #76a0c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7aaa",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 170
  },
  "hsl": {
    "h": 202.5,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.55365,
    "c": 0.10636,
    "h": 239.5
  },
  "luminance": 0.17314
}

Semantic roles & 50–950 ramp

primary
#2A7AAA
secondary
#C38D6C
accent
#8044E4
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E12
muted
#7C7E81

Preview Lab

Preview with #2A7AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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