#40799A#40799A

#40799A is a mid, moderate cyan. Relative luminance 0.171; OKLCH L 55.1% C 0.079 H 236.0°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#40799A
RGBrgb(64, 121, 154)
HSLhsl(202, 41%, 43%)
HSVhsv(202, 58%, 60%)
CMYKcmyk(58.4%, 21.4%, 0%, 39.6%)
CIE-LABlab(48.38, -8.62, -23.46)
CIE-LCHlch(48.38, 24.99, 249.83°)
OKLaboklab(55.13% -0.0441 -0.0655)
OKLCHoklch(55.13% 0.079 236)
XYZxyz(14.7823, 17.0965, 33.0865)
Luminance0.1710 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40799A #9A6140
analogous
#409A8E #40799A #404C9A
triadic
#40799A #9A4079 #799A40
tetradic
#40799A #8E409A #9A6140 #4C9A40
square
#40799A #8E409A #9A6140 #4C9A40
split-complementary
#40799A #9A404C #9A8E40
monochromatic
#1C3544 #2E576F #40799A #5C98BB #87B4CD

Accessibility & contrast

On white

4.75
#40799A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#40799A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40799A
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40799A#FFFFFF#000000##FFFFFF
##40799A1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A789C
Deuteranopia (green-blind)
#5D6F99
Tritanopia (blue-blind)
#008284
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #40799a;
/* rgb */ color: rgb(64, 121, 154);
/* oklch */ color: oklch(55.1% 0.079 236.0);
Tailwind
colors: {
  custom: {
    50: '#7c9fb8',
    500: '#40799a',
    950: '#000000',
  },
}
SCSS
$custom: #40799a;
$custom-light: #7c9fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#40799a",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 154
  },
  "hsl": {
    "h": 202,
    "s": 41.284,
    "l": 42.745
  },
  "oklch": {
    "l": 0.55127,
    "c": 0.07902,
    "h": 236
  },
  "luminance": 0.17098
}

Semantic roles & 50–950 ramp

primary
#40799A
secondary
#B8937E
accent
#8457D1
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#0A0E11
muted
#7C7E80

Preview Lab

Preview with #40799A

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

Preview Lab → · Contrast checker → · Palette generator →

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