#40A7E2#40A7E2

#40A7E2 is a light, vivid cyan. Relative luminance 0.342; OKLCH L 69.4% C 0.127 H 238.0°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#40A7E2
RGBrgb(64, 167, 226)
HSLhsl(202, 74%, 57%)
HSVhsv(202, 72%, 89%)
CMYKcmyk(71.7%, 26.1%, 0%, 11.4%)
CIE-LABlab(65.13, -10.59, -38.28)
CIE-LCHlch(65.13, 39.72, 254.54°)
OKLaboklab(69.44% -0.0676 -0.108)
OKLCHoklch(69.44% 0.127 238)
XYZxyz(29.6551, 34.2150, 76.9780)
Luminance0.3422 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A7E2 #E27B40
analogous
#40E2CC #40A7E2 #4056E2
triadic
#40A7E2 #E240A7 #A7E240
tetradic
#40A7E2 #CC40E2 #E27B40 #56E240
square
#40A7E2 #CC40E2 #E27B40 #56E240
split-complementary
#40A7E2 #E24056 #E2CC40
monochromatic
#166592 #1E89C7 #40A7E2 #75BFEA #AAD8F2

Accessibility & contrast

On white

2.68
#40A7E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.84
#40A7E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40A7E2
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A7E2#FFFFFF#000000##000000
##40A7E21.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BA7E5
Deuteranopia (green-blind)
#7597E1
Tritanopia (blue-blind)
#00B6BB
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #40a7e2;
/* rgb */ color: rgb(64, 167, 226);
/* oklch */ color: oklch(69.4% 0.127 238.0);
Tailwind
colors: {
  custom: {
    50: '#88c1eb',
    500: '#40a7e2',
    950: '#000000',
  },
}
SCSS
$custom: #40a7e2;
$custom-light: #88c1eb;
$custom-dark: #000000;
JSON
{
  "hex": "#40a7e2",
  "rgb": {
    "r": 64,
    "g": 167,
    "b": 226
  },
  "hsl": {
    "h": 201.852,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.69443,
    "c": 0.12737,
    "h": 238
  },
  "luminance": 0.34218
}

Semantic roles & 50–950 ramp

primary
#40A7E2
secondary
#E0B69E
accent
#7B38F0
background
#F9FBFE
surface
#F1F7FD
border
#CBD0D5
text
#0D1216
muted
#7E8184

Preview Lab

Preview with #40A7E2

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

Preview Lab → · Contrast checker → · Palette generator →

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