#2A7FA1#2A7FA1

#2A7FA1 is a mid, moderate cyan. Relative luminance 0.182; OKLCH L 56.1% C 0.095 H 228.9°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#2A7FA1
RGBrgb(42, 127, 161)
HSLhsl(197, 59%, 40%)
HSVhsv(197, 74%, 63%)
CMYKcmyk(73.9%, 21.1%, 0%, 36.9%)
CIE-LABlab(49.79, -13.52, -25.43)
CIE-LCHlch(49.79, 28.80, 242.00°)
OKLaboklab(56.14% -0.0622 -0.0714)
OKLCHoklch(56.14% 0.095 228.9)
XYZxyz(14.9746, 18.2425, 36.4432)
Luminance0.1824 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7FA1 #A14C2A
analogous
#2AA188 #2A7FA1 #2A43A1
triadic
#2A7FA1 #A12A7F #7FA12A
tetradic
#2A7FA1 #882AA1 #A14C2A #43A12A
square
#2A7FA1 #882AA1 #A14C2A #43A12A
split-complementary
#2A7FA1 #A12A43 #A1882A
monochromatic
#113240 #1D5970 #2A7FA1 #3CA3CC #6DBAD9

Accessibility & contrast

On white

4.52
#2A7FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#2A7FA1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A7FA1
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7FA1#FFFFFF#000000##000000
##2A7FA11.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D7DA3
Deuteranopia (green-blind)
#5D71A1
Tritanopia (blue-blind)
#00898A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2a7fa1;
/* rgb */ color: rgb(42, 127, 161);
/* oklch */ color: oklch(56.1% 0.095 228.9);
Tailwind
colors: {
  custom: {
    50: '#74a4bd',
    500: '#2a7fa1',
    950: '#000000',
  },
}
SCSS
$custom: #2a7fa1;
$custom-light: #74a4bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7fa1",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 161
  },
  "hsl": {
    "h": 197.143,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.56139,
    "c": 0.09464,
    "h": 228.9
  },
  "luminance": 0.18244
}

Semantic roles & 50–950 ramp

primary
#2A7FA1
secondary
#C08067
accent
#7346E2
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#090F12
muted
#7B7F81

Preview Lab

Preview with #2A7FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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