#40798F#40798F

#40798F is a mid, moderate cyan. Relative luminance 0.167; OKLCH L 54.6% C 0.069 H 225.4°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#40798F
RGBrgb(64, 121, 143)
HSLhsl(197, 38%, 41%)
HSVhsv(197, 55%, 56%)
CMYKcmyk(55.2%, 15.4%, 0%, 43.9%)
CIE-LABlab(47.94, -12.12, -17.67)
CIE-LCHlch(47.94, 21.43, 235.54°)
OKLaboklab(54.63% -0.0484 -0.0491)
OKLCHoklch(54.63% 0.069 225.4)
XYZxyz(13.9078, 16.7467, 28.4808)
Luminance0.1675 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40798F #8F5640
analogous
#408F7D #40798F #40518F
triadic
#40798F #8F4079 #798F40
tetradic
#40798F #7D408F #8F5640 #518F40
square
#40798F #7D408F #8F5640 #518F40
split-complementary
#40798F #8F4051 #8F7D40
monochromatic
#1A313A #2D5565 #40798F #589BB4 #82B4C7

Accessibility & contrast

On white

4.83
#40798F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#40798F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40798F
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40798F#FFFFFF#000000##FFFFFF
##40798F1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D7790
Deuteranopia (green-blind)
#616E8F
Tritanopia (blue-blind)
#028080
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #40798f;
/* rgb */ color: rgb(64, 121, 143);
/* oklch */ color: oklch(54.6% 0.069 225.4);
Tailwind
colors: {
  custom: {
    50: '#7b9faf',
    500: '#40798f',
    950: '#000000',
  },
}
SCSS
$custom: #40798f;
$custom-light: #7b9faf;
$custom-dark: #000000;
JSON
{
  "hex": "#40798f",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 143
  },
  "hsl": {
    "h": 196.709,
    "s": 38.164,
    "l": 40.588
  },
  "oklch": {
    "l": 0.54629,
    "c": 0.06889,
    "h": 225.4
  },
  "luminance": 0.16748
}

Semantic roles & 50–950 ramp

primary
#40798F
secondary
#B28979
accent
#7A5ACE
background
#F7F9FA
surface
#EEF2F4
border
#C9CCCE
text
#0A0E10
muted
#7C7E7F

Preview Lab

Preview with #40798F

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

Preview Lab → · Contrast checker → · Palette generator →

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