#40787D#40787D

#40787D is a mid, muted teal. Relative luminance 0.160; OKLCH L 53.6% C 0.060 H 203.1°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#40787D
RGBrgb(64, 120, 125)
HSLhsl(185, 32%, 37%)
HSVhsv(185, 49%, 49%)
CMYKcmyk(48.8%, 4%, 0%, 51%)
CIE-LABlab(46.98, -16.98, -8.47)
CIE-LCHlch(46.98, 18.97, 206.51°)
OKLaboklab(53.65% -0.0548 -0.0233)
OKLCHoklch(53.65% 0.06 203.1)
XYZxyz(12.5311, 16.0026, 21.8265)
Luminance0.1600 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40787D #7D4540
analogous
#407D64 #40787D #405A7D
triadic
#40787D #7D4078 #787D40
tetradic
#40787D #64407D #7D4540 #5A7D40
square
#40787D #64407D #7D4540 #5A7D40
split-complementary
#40787D #7D405A #7D6440
monochromatic
#172A2C #2B5155 #40787D #559FA5 #7CB6BC

Accessibility & contrast

On white

5.00
#40787D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#40787D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40787D
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40787D#FFFFFF#000000##FFFFFF
##40787D1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#70747D
Deuteranopia (green-blind)
#666C7D
Tritanopia (blue-blind)
#1E7C79
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #40787d;
/* rgb */ color: rgb(64, 120, 125);
/* oklch */ color: oklch(53.6% 0.060 203.1);
Tailwind
colors: {
  custom: {
    50: '#7a9fa2',
    500: '#40787d',
    950: '#000000',
  },
}
SCSS
$custom: #40787d;
$custom-light: #7a9fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#40787d",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 125
  },
  "hsl": {
    "h": 184.918,
    "s": 32.275,
    "l": 37.059
  },
  "oklch": {
    "l": 0.53645,
    "c": 0.05953,
    "h": 203.1
  },
  "luminance": 0.16004
}

Semantic roles & 50–950 ramp

primary
#40787D
secondary
#A67773
accent
#685FC8
background
#F7F9F9
surface
#EEF2F2
border
#C9CCCC
text
#090E0F
muted
#7B7E7E

Preview Lab

Preview with #40787D

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

Preview Lab → · Contrast checker → · Palette generator →

#40787D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva