#40798E#40798E

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

Color values

HEX#40798E
RGBrgb(64, 121, 142)
HSLhsl(196, 38%, 40%)
HSVhsv(196, 55%, 56%)
CMYKcmyk(54.9%, 14.8%, 0%, 44.3%)
CIE-LABlab(47.90, -12.43, -17.14)
CIE-LCHlch(47.90, 21.17, 234.03°)
OKLaboklab(54.58% -0.0488 -0.0475)
OKLCHoklch(54.58% 0.068 224.3)
XYZxyz(13.8324, 16.7165, 28.0836)
Luminance0.1672 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40798E #8E5540
analogous
#408E7C #40798E #40528E
triadic
#40798E #8E4079 #798E40
tetradic
#40798E #7C408E #8E5540 #528E40
square
#40798E #7C408E #8E5540 #528E40
split-complementary
#40798E #8E4052 #8E7C40
monochromatic
#1A313A #2D5564 #40798E #589BB4 #82B4C7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40798E#FFFFFF#000000##FFFFFF
##40798E1.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D778F
Deuteranopia (green-blind)
#626E8E
Tritanopia (blue-blind)
#047F80
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #40798e;
/* rgb */ color: rgb(64, 121, 142);
/* oklch */ color: oklch(54.6% 0.068 224.3);
Tailwind
colors: {
  custom: {
    50: '#7b9faf',
    500: '#40798e',
    950: '#000000',
  },
}
SCSS
$custom: #40798e;
$custom-light: #7b9faf;
$custom-dark: #000000;
JSON
{
  "hex": "#40798e",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 142
  },
  "hsl": {
    "h": 196.154,
    "s": 37.864,
    "l": 40.392
  },
  "oklch": {
    "l": 0.54585,
    "c": 0.06811,
    "h": 224.3
  },
  "luminance": 0.16718
}

Semantic roles & 50–950 ramp

primary
#40798E
secondary
#B18879
accent
#795ACE
background
#F7F9FA
surface
#EEF2F4
border
#C9CCCE
text
#0A0E10
muted
#7C7E7F

Preview Lab

Preview with #40798E

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

Preview Lab → · Contrast checker → · Palette generator →

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