#40799C#40799C

#40799C is a mid, moderate cyan. Relative luminance 0.172; OKLCH L 55.2% C 0.081 H 237.6°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#40799C
RGBrgb(64, 121, 156)
HSLhsl(203, 42%, 43%)
HSVhsv(203, 59%, 61%)
CMYKcmyk(59%, 22.4%, 0%, 38.8%)
CIE-LABlab(48.47, -7.97, -24.50)
CIE-LCHlch(48.47, 25.76, 251.99°)
OKLaboklab(55.22% -0.0434 -0.0685)
OKLCHoklch(55.22% 0.081 237.6)
XYZxyz(14.9502, 17.1637, 33.9711)
Luminance0.1716 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40799C #9C6340
analogous
#409C91 #40799C #404B9C
triadic
#40799C #9C4079 #799C40
tetradic
#40799C #91409C #9C6340 #4B9C40
square
#40799C #91409C #9C6340 #4B9C40
split-complementary
#40799C #9C404B #9C9140
monochromatic
#1C3645 #2E5771 #40799C #5D98BC #88B4CE

Accessibility & contrast

On white

4.74
#40799C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#40799C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40799C
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40799C#FFFFFF#000000##FFFFFF
##40799C1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#69789E
Deuteranopia (green-blind)
#5C6F9B
Tritanopia (blue-blind)
#008285
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #40799c;
/* rgb */ color: rgb(64, 121, 156);
/* oklch */ color: oklch(55.2% 0.081 237.6);
Tailwind
colors: {
  custom: {
    50: '#7d9fb9',
    500: '#40799c',
    950: '#000000',
  },
}
SCSS
$custom: #40799c;
$custom-light: #7d9fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#40799c",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 156
  },
  "hsl": {
    "h": 202.826,
    "s": 41.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.55221,
    "c": 0.08111,
    "h": 237.6
  },
  "luminance": 0.17165
}

Semantic roles & 50–950 ramp

primary
#40799C
secondary
#B9957F
accent
#8556D2
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#0A0E11
muted
#7C7E80

Preview Lab

Preview with #40799C

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

Preview Lab → · Contrast checker → · Palette generator →

#40799C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva