#405AAC#405AAC

#405AAC is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.1% C 0.134 H 268.0°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#405AAC
RGBrgb(64, 90, 172)
HSLhsl(226, 46%, 46%)
HSVhsv(226, 63%, 67%)
CMYKcmyk(62.8%, 47.7%, 0%, 32.5%)
CIE-LABlab(40.21, 16.73, -46.94)
CIE-LCHlch(40.21, 49.83, 289.61°)
OKLaboklab(49.06% -0.0047 -0.1342)
OKLCHoklch(49.06% 0.134 268)
XYZxyz(13.2144, 11.3797, 40.5219)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AAC #AC9240
analogous
#4090AC #405AAC #5C40AC
triadic
#405AAC #AC405A #5AAC40
tetradic
#405AAC #AC4090 #AC9240 #40AC5C
square
#405AAC #AC4090 #AC9240 #40AC5C
split-complementary
#405AAC #AC5C40 #90AC40
monochromatic
#1F2B53 #2F437F #405AAC #647BC5 #91A1D6

Accessibility & contrast

On white

6.41
#405AAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#405AAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405AAC
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AAC#FFFFFF#000000##FFFFFF
##405AAC1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3164AF
Deuteranopia (green-blind)
#1E5AAA
Tritanopia (blue-blind)
#006D7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #405aac;
/* rgb */ color: rgb(64, 90, 172);
/* oklch */ color: oklch(49.1% 0.134 268.0);
Tailwind
colors: {
  custom: {
    50: '#7f88c5',
    500: '#405aac',
    950: '#000000',
  },
}
SCSS
$custom: #405aac;
$custom-light: #7f88c5;
$custom-dark: #000000;
JSON
{
  "hex": "#405aac",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 172
  },
  "hsl": {
    "h": 225.556,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49062,
    "c": 0.13428,
    "h": 268
  },
  "luminance": 0.11381
}

Semantic roles & 50–950 ramp

primary
#405AAC
secondary
#C1B387
accent
#B652D5
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405AAC

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

Preview Lab → · Contrast checker → · Palette generator →

#405AAC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva