#40778B#40778B

#40778B is a mid, moderate cyan. Relative luminance 0.161; OKLCH L 54.0% C 0.066 H 223.9°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#40778B
RGBrgb(64, 119, 139)
HSLhsl(196, 37%, 40%)
HSVhsv(196, 54%, 55%)
CMYKcmyk(54%, 14.4%, 0%, 45.5%)
CIE-LABlab(47.17, -12.23, -16.48)
CIE-LCHlch(47.17, 20.53, 233.42°)
OKLaboklab(53.96% -0.0476 -0.0457)
OKLCHoklch(53.96% 0.066 223.9)
XYZxyz(13.3696, 16.1466, 26.8331)
Luminance0.1615 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40778B #8B5440
analogous
#408B7A #40778B #40528B
triadic
#40778B #8B4077 #778B40
tetradic
#40778B #7A408B #8B5440 #528B40
square
#40778B #7A408B #8B5440 #528B40
split-complementary
#40778B #8B4052 #8B7A40
monochromatic
#192F37 #2D5361 #40778B #5799B2 #81B3C5

Accessibility & contrast

On white

4.97
#40778B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#40778B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40778B
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40778B#FFFFFF#000000##FFFFFF
##40778B1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C758C
Deuteranopia (green-blind)
#616C8B
Tritanopia (blue-blind)
#0D7D7D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #40778b;
/* rgb */ color: rgb(64, 119, 139);
/* oklch */ color: oklch(54.0% 0.066 223.9);
Tailwind
colors: {
  custom: {
    50: '#7b9ead',
    500: '#40778b',
    950: '#000000',
  },
}
SCSS
$custom: #40778b;
$custom-light: #7b9ead;
$custom-dark: #000000;
JSON
{
  "hex": "#40778b",
  "rgb": {
    "r": 64,
    "g": 119,
    "b": 139
  },
  "hsl": {
    "h": 196,
    "s": 36.946,
    "l": 39.804
  },
  "oklch": {
    "l": 0.53961,
    "c": 0.06596,
    "h": 223.9
  },
  "luminance": 0.16148
}

Semantic roles & 50–950 ramp

primary
#40778B
secondary
#AF8678
accent
#795BCD
background
#F7F9FA
surface
#EEF2F4
border
#C9CCCE
text
#0A0E10
muted
#7C7E7F

Preview Lab

Preview with #40778B

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

Preview Lab → · Contrast checker → · Palette generator →

#40778B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva