#40799B#40799B

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

Color values

HEX#40799B
RGBrgb(64, 121, 155)
HSLhsl(202, 42%, 43%)
HSVhsv(202, 59%, 61%)
CMYKcmyk(58.7%, 21.9%, 0%, 39.2%)
CIE-LABlab(48.42, -8.29, -23.98)
CIE-LCHlch(48.42, 25.37, 250.92°)
OKLaboklab(55.17% -0.0438 -0.067)
OKLCHoklch(55.17% 0.08 236.8)
XYZxyz(14.8659, 17.1299, 33.5270)
Luminance0.1713 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40799B #9B6240
analogous
#409B90 #40799B #404B9B
triadic
#40799B #9B4079 #799B40
tetradic
#40799B #90409B #9B6240 #4B9B40
square
#40799B #90409B #9B6240 #4B9B40
split-complementary
#40799B #9B404B #9B9040
monochromatic
#1C3544 #2E5770 #40799B #5C98BC #88B4CE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40799B#FFFFFF#000000##FFFFFF
##40799B1.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)
#69789D
Deuteranopia (green-blind)
#5D6F9A
Tritanopia (blue-blind)
#008284
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #40799b;
/* rgb */ color: rgb(64, 121, 155);
/* oklch */ color: oklch(55.2% 0.080 236.8);
Tailwind
colors: {
  custom: {
    50: '#7d9fb8',
    500: '#40799b',
    950: '#000000',
  },
}
SCSS
$custom: #40799b;
$custom-light: #7d9fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#40799b",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 155
  },
  "hsl": {
    "h": 202.418,
    "s": 41.553,
    "l": 42.941
  },
  "oklch": {
    "l": 0.55174,
    "c": 0.08006,
    "h": 236.8
  },
  "luminance": 0.17131
}

Semantic roles & 50–950 ramp

primary
#40799B
secondary
#B8947E
accent
#8456D1
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#0A0E11
muted
#7C7E80

Preview Lab

Preview with #40799B

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

Preview Lab → · Contrast checker → · Palette generator →

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