#40658E#40658E

#40658E is a mid, moderate cyan. Relative luminance 0.123; OKLCH L 49.7% C 0.079 H 252.0°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#40658E
RGBrgb(64, 101, 142)
HSLhsl(212, 38%, 40%)
HSVhsv(212, 55%, 56%)
CMYKcmyk(54.9%, 28.9%, 0%, 44.3%)
CIE-LABlab(41.77, -0.63, -26.60)
CIE-LCHlch(41.77, 26.61, 268.64°)
OKLaboklab(49.73% -0.0243 -0.0747)
OKLCHoklch(49.73% 0.079 252)
XYZxyz(11.6488, 12.3494, 27.3558)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40658E #8E6940
analogous
#408C8E #40658E #42408E
triadic
#40658E #8E4065 #658E40
tetradic
#40658E #8E408C #8E6940 #408E42
square
#40658E #8E408C #8E6940 #408E42
split-complementary
#40658E #8E4240 #8C8E40
monochromatic
#1A293A #2D4764 #40658E #5883B4 #82A2C7

Accessibility & contrast

On white

6.05
#40658E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#40658E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40658E
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40658E#FFFFFF#000000##FFFFFF
##40658E1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#546790
Deuteranopia (green-blind)
#4A5F8D
Tritanopia (blue-blind)
#126E73
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #40658e;
/* rgb */ color: rgb(64, 101, 142);
/* oklch */ color: oklch(49.7% 0.079 252.0);
Tailwind
colors: {
  custom: {
    50: '#7a90af',
    500: '#40658e',
    950: '#000000',
  },
}
SCSS
$custom: #40658e;
$custom-light: #7a90af;
$custom-dark: #000000;
JSON
{
  "hex": "#40658e",
  "rgb": {
    "r": 64,
    "g": 101,
    "b": 142
  },
  "hsl": {
    "h": 211.538,
    "s": 37.864,
    "l": 40.392
  },
  "oklch": {
    "l": 0.49729,
    "c": 0.07853,
    "h": 252
  },
  "luminance": 0.1235
}

Semantic roles & 50–950 ramp

primary
#40658E
secondary
#B19679
accent
#975ACE
background
#F7F8FA
surface
#EEF0F4
border
#C9CBCE
text
#0A0C10
muted
#7C7D7F

Preview Lab

Preview with #40658E

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

Preview Lab → · Contrast checker → · Palette generator →

#40658E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva