#406498#406498

#406498 is a mid, moderate blue. Relative luminance 0.125; OKLCH L 50.0% C 0.093 H 257.6°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#406498
RGBrgb(64, 100, 152)
HSLhsl(215, 41%, 42%)
HSVhsv(215, 58%, 60%)
CMYKcmyk(57.9%, 34.2%, 0%, 40.4%)
CIE-LABlab(41.95, 3.36, -32.29)
CIE-LCHlch(41.95, 32.47, 275.94°)
OKLaboklab(50.04% -0.0201 -0.0912)
OKLCHoklch(50.04% 0.093 257.6)
XYZxyz(12.3370, 12.4703, 31.4566)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406498 #987440
analogous
#409098 #406498 #484098
triadic
#406498 #984064 #649840
tetradic
#406498 #984090 #987440 #409848
square
#406498 #984090 #987440 #409848
split-complementary
#406498 #984840 #909840
monochromatic
#1C2B42 #2E486D #406498 #5B82BA #86A3CC

Accessibility & contrast

On white

6.01
#406498 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#406498 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406498
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406498#FFFFFF#000000##FFFFFF
##4064981.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F689A
Deuteranopia (green-blind)
#435F97
Tritanopia (blue-blind)
#007077
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #406498;
/* rgb */ color: rgb(64, 100, 152);
/* oklch */ color: oklch(50.0% 0.093 257.6);
Tailwind
colors: {
  custom: {
    50: '#7c8fb6',
    500: '#406498',
    950: '#000000',
  },
}
SCSS
$custom: #406498;
$custom-light: #7c8fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#406498",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 152
  },
  "hsl": {
    "h": 215.455,
    "s": 40.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.50036,
    "c": 0.09337,
    "h": 257.6
  },
  "luminance": 0.12471
}

Semantic roles & 50–950 ramp

primary
#406498
secondary
#B79F7D
accent
#9F57D1
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#0A0C11
muted
#7C7D80

Preview Lab

Preview with #406498

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

Preview Lab → · Contrast checker → · Palette generator →

#406498 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva