#2A7987#2A7987

#2A7987 is a mid, moderate teal. Relative luminance 0.159; OKLCH L 53.4% C 0.078 H 211.5°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#2A7987
RGBrgb(42, 121, 135)
HSLhsl(189, 53%, 35%)
HSVhsv(189, 69%, 53%)
CMYKcmyk(68.9%, 10.4%, 0%, 47.1%)
CIE-LABlab(46.86, -18.99, -14.65)
CIE-LCHlch(46.86, 23.99, 217.64°)
OKLaboklab(53.45% -0.0664 -0.0407)
OKLCHoklch(53.45% 0.078 211.5)
XYZxyz(12.1636, 15.9149, 25.3478)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7987 #87382A
analogous
#2A8766 #2A7987 #2A4B87
triadic
#2A7987 #872A79 #79872A
tetradic
#2A7987 #662A87 #87382A #4B872A
square
#2A7987 #662A87 #87382A #4B872A
split-complementary
#2A7987 #872A4B #87662A
monochromatic
#0D252A #1B4F58 #2A7987 #39A3B6 #5EBCCD

Accessibility & contrast

On white

5.02
#2A7987 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#2A7987 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7987
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7987#FFFFFF#000000##FFFFFF
##2A79871.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E7588
Deuteranopia (green-blind)
#606B87
Tritanopia (blue-blind)
#007F7D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2a7987;
/* rgb */ color: rgb(42, 121, 135);
/* oklch */ color: oklch(53.4% 0.078 211.5);
Tailwind
colors: {
  custom: {
    50: '#70a0aa',
    500: '#2a7987',
    950: '#000000',
  },
}
SCSS
$custom: #2a7987;
$custom-light: #70a0aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7987",
  "rgb": {
    "r": 42,
    "g": 121,
    "b": 135
  },
  "hsl": {
    "h": 189.032,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.53449,
    "c": 0.07785,
    "h": 211.5
  },
  "luminance": 0.15916
}

Semantic roles & 50–950 ramp

primary
#2A7987
secondary
#B3675A
accent
#624CDC
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#080E10
muted
#7B7E7F

Preview Lab

Preview with #2A7987

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

Preview Lab → · Contrast checker → · Palette generator →

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