#40A8D4#40A8D4

#40A8D4 is a light, moderate cyan. Relative luminance 0.338; OKLCH L 69.0% C 0.114 H 229.9°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#40A8D4
RGBrgb(64, 168, 212)
HSLhsl(198, 63%, 54%)
HSVhsv(198, 70%, 83%)
CMYKcmyk(69.8%, 20.8%, 0%, 16.9%)
CIE-LABlab(64.84, -15.77, -31.01)
CIE-LCHlch(64.84, 34.79, 243.05°)
OKLaboklab(69.02% -0.0733 -0.087)
OKLCHoklch(69.02% 0.114 229.9)
XYZxyz(27.9959, 33.8456, 67.3320)
Luminance0.3385 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A8D4 #D46C40
analogous
#40D4B6 #40A8D4 #405ED4
triadic
#40A8D4 #D440A8 #A8D440
tetradic
#40A8D4 #B640D4 #D46C40 #5ED440
square
#40A8D4 #B640D4 #D46C40 #5ED440
split-complementary
#40A8D4 #D4405E #D4B640
monochromatic
#1C607D #2787AF #40A8D4 #72BFDF #A4D6EA

Accessibility & contrast

On white

2.70
#40A8D4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#40A8D4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40A8D4
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A8D4#FFFFFF#000000##000000
##40A8D41.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#91A6D6
Deuteranopia (green-blind)
#7D97D3
Tritanopia (blue-blind)
#00B4B7
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #40a8d4;
/* rgb */ color: rgb(64, 168, 212);
/* oklch */ color: oklch(69.0% 0.114 229.9);
Tailwind
colors: {
  custom: {
    50: '#87c1e1',
    500: '#40a8d4',
    950: '#000000',
  },
}
SCSS
$custom: #40a8d4;
$custom-light: #87c1e1;
$custom-dark: #000000;
JSON
{
  "hex": "#40a8d4",
  "rgb": {
    "r": 64,
    "g": 168,
    "b": 212
  },
  "hsl": {
    "h": 197.838,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.69017,
    "c": 0.11377,
    "h": 229.9
  },
  "luminance": 0.33849
}

Semantic roles & 50–950 ramp

primary
#40A8D4
secondary
#D7AB98
accent
#7342E6
background
#F8FBFD
surface
#F0F7FB
border
#CBD0D4
text
#0D1215
muted
#7D8183

Preview Lab

Preview with #40A8D4

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

Preview Lab → · Contrast checker → · Palette generator →

#40A8D4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva