#2A787E#2A787E

#2A787E is a mid, moderate teal. Relative luminance 0.154; OKLCH L 52.8% C 0.075 H 202.4°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#2A787E
RGBrgb(42, 120, 126)
HSLhsl(184, 50%, 33%)
HSVhsv(184, 67%, 49%)
CMYKcmyk(66.7%, 4.8%, 0%, 50.6%)
CIE-LABlab(46.22, -21.34, -10.28)
CIE-LCHlch(46.22, 23.69, 205.72°)
OKLaboklab(52.82% -0.0693 -0.0285)
OKLCHoklch(52.82% 0.075 202.4)
XYZxyz(11.4356, 15.4303, 22.1103)
Luminance0.1543 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A787E #7E302A
analogous
#2A7E5A #2A787E #2A4E7E
triadic
#2A787E #7E2A78 #787E2A
tetradic
#2A787E #5A2A7E #7E302A #4E7E2A
square
#2A787E #5A2A7E #7E302A #4E7E2A
split-complementary
#2A787E #7E2A4E #7E5A2A
monochromatic
#0B2122 #1B4C50 #2A787E #39A4AC #5AC0C8

Accessibility & contrast

On white

5.14
#2A787E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#2A787E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A787E
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A787E#FFFFFF#000000##FFFFFF
##2A787E1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F737E
Deuteranopia (green-blind)
#62697E
Tritanopia (blue-blind)
#007D7A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a787e;
/* rgb */ color: rgb(42, 120, 126);
/* oklch */ color: oklch(52.8% 0.075 202.4);
Tailwind
colors: {
  custom: {
    50: '#6f9fa3',
    500: '#2a787e',
    950: '#000000',
  },
}
SCSS
$custom: #2a787e;
$custom-light: #6f9fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a787e",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 126
  },
  "hsl": {
    "h": 184.286,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.52823,
    "c": 0.07489,
    "h": 202.4
  },
  "luminance": 0.15432
}

Semantic roles & 50–950 ramp

primary
#2A787E
secondary
#AE5C56
accent
#584EDA
background
#F7F9FA
surface
#EDF2F3
border
#C8CCCD
text
#080E0F
muted
#7B7E7F

Preview Lab

Preview with #2A787E

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

Preview Lab → · Contrast checker → · Palette generator →

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