#2A7FAF#2A7FAF

#2A7FAF is a mid, moderate cyan. Relative luminance 0.188; OKLCH L 56.8% C 0.108 H 238.2°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#2A7FAF
RGBrgb(42, 127, 175)
HSLhsl(202, 61%, 43%)
HSVhsv(202, 76%, 69%)
CMYKcmyk(76%, 27.4%, 0%, 31.4%)
CIE-LABlab(50.41, -8.58, -32.59)
CIE-LCHlch(50.41, 33.70, 255.25°)
OKLaboklab(56.84% -0.0572 -0.092)
OKLCHoklch(56.84% 0.108 238.2)
XYZxyz(16.2790, 18.7642, 43.3130)
Luminance0.1877 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7FAF #AF5A2A
analogous
#2AAF9C #2A7FAF #2A3DAF
triadic
#2A7FAF #AF2A7F #7FAF2A
tetradic
#2A7FAF #9C2AAF #AF5A2A #3DAF2A
square
#2A7FAF #9C2AAF #AF5A2A #3DAF2A
split-complementary
#2A7FAF #AF2A3D #AF9C2A
monochromatic
#12374C #1E5B7E #2A7FAF #449FD2 #75B8DE

Accessibility & contrast

On white

4.42
#2A7FAF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#2A7FAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A7FAF
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7FAF#FFFFFF#000000##000000
##2A7FAF1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a7faf;
/* rgb */ color: rgb(42, 127, 175);
/* oklch */ color: oklch(56.8% 0.108 238.2);
Tailwind
colors: {
  custom: {
    50: '#77a4c7',
    500: '#2a7faf',
    950: '#000000',
  },
}
SCSS
$custom: #2a7faf;
$custom-light: #77a4c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7faf",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 175
  },
  "hsl": {
    "h": 201.654,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.56839,
    "c": 0.10834,
    "h": 238.2
  },
  "luminance": 0.18766
}

Semantic roles & 50–950 ramp

primary
#2A7FAF
secondary
#C68E6F
accent
#7E43E4
background
#F7FAFC
surface
#EEF3F8
border
#C9CDD1
text
#0A0F13
muted
#7C7F82

Preview Lab

Preview with #2A7FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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