#406CAF#406CAF

#406CAF is a mid, moderate blue. Relative luminance 0.149; OKLCH L 53.2% C 0.117 H 258.6°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#406CAF
RGBrgb(64, 108, 175)
HSLhsl(216, 46%, 47%)
HSVhsv(216, 63%, 69%)
CMYKcmyk(63.4%, 38.3%, 0%, 31.4%)
CIE-LABlab(45.51, 6.34, -40.26)
CIE-LCHlch(45.51, 40.75, 278.95°)
OKLaboklab(53.2% -0.0231 -0.1143)
OKLCHoklch(53.2% 0.117 258.6)
XYZxyz(15.2120, 14.9088, 42.6252)
Luminance0.1491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CAF #AF8340
analogous
#40A4AF #406CAF #4B40AF
triadic
#406CAF #AF406C #6CAF40
tetradic
#406CAF #AF40A4 #AF8340 #40AF4B
square
#406CAF #AF40A4 #AF8340 #40AF4B
split-complementary
#406CAF #AF4B40 #A4AF40
monochromatic
#1F3555 #305082 #406CAF #658CC7 #92AED7

Accessibility & contrast

On white

5.27
#406CAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#406CAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406CAF
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CAF#FFFFFF#000000##FFFFFF
##406CAF1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F71B2
Deuteranopia (green-blind)
#3F67AE
Tritanopia (blue-blind)
#007B85
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #406caf;
/* rgb */ color: rgb(64, 108, 175);
/* oklch */ color: oklch(53.2% 0.117 258.6);
Tailwind
colors: {
  custom: {
    50: '#7f95c7',
    500: '#406caf',
    950: '#000000',
  },
}
SCSS
$custom: #406caf;
$custom-light: #7f95c7;
$custom-dark: #000000;
JSON
{
  "hex": "#406caf",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 175
  },
  "hsl": {
    "h": 216.216,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.53199,
    "c": 0.11665,
    "h": 258.6
  },
  "luminance": 0.1491
}

Semantic roles & 50–950 ramp

primary
#406CAF
secondary
#C3AB88
accent
#A252D6
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406CAF

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

Preview Lab → · Contrast checker → · Palette generator →

#406CAF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva