#40798D#40798D

#40798D is a mid, moderate cyan. Relative luminance 0.167; OKLCH L 54.5% C 0.067 H 223.1°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#40798D
RGBrgb(64, 121, 141)
HSLhsl(196, 38%, 40%)
HSVhsv(196, 55%, 55%)
CMYKcmyk(54.6%, 14.2%, 0%, 44.7%)
CIE-LABlab(47.86, -12.74, -16.60)
CIE-LCHlch(47.86, 20.93, 232.49°)
OKLaboklab(54.54% -0.0492 -0.046)
OKLCHoklch(54.54% 0.067 223.1)
XYZxyz(13.7576, 16.6866, 27.6900)
Luminance0.1669 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40798D #8D5440
analogous
#408D7A #40798D #40538D
triadic
#40798D #8D4079 #798D40
tetradic
#40798D #7A408D #8D5440 #538D40
square
#40798D #7A408D #8D5440 #538D40
split-complementary
#40798D #8D4053 #8D7A40
monochromatic
#1A3139 #2D5563 #40798D #579BB3 #81B4C6

Accessibility & contrast

On white

4.84
#40798D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#40798D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40798D
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40798D#FFFFFF#000000##FFFFFF
##40798D1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E768E
Deuteranopia (green-blind)
#626E8D
Tritanopia (blue-blind)
#077F7F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #40798d;
/* rgb */ color: rgb(64, 121, 141);
/* oklch */ color: oklch(54.5% 0.067 223.1);
Tailwind
colors: {
  custom: {
    50: '#7b9fae',
    500: '#40798d',
    950: '#000000',
  },
}
SCSS
$custom: #40798d;
$custom-light: #7b9fae;
$custom-dark: #000000;
JSON
{
  "hex": "#40798d",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 141
  },
  "hsl": {
    "h": 195.584,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.54542,
    "c": 0.06737,
    "h": 223.1
  },
  "luminance": 0.16688
}

Semantic roles & 50–950 ramp

primary
#40798D
secondary
#B08778
accent
#785ACE
background
#F7F9FA
surface
#EEF2F4
border
#C9CCCE
text
#0A0E10
muted
#7C7E7F

Preview Lab

Preview with #40798D

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

Preview Lab → · Contrast checker → · Palette generator →

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