#405CBC#405CBC

#405CBC is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.6% C 0.154 H 268.2°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#405CBC
RGBrgb(64, 92, 188)
HSLhsl(226, 49%, 49%)
HSVhsv(226, 66%, 74%)
CMYKcmyk(66%, 51.1%, 0%, 26.3%)
CIE-LABlab(41.80, 21.14, -53.77)
CIE-LCHlch(41.80, 57.78, 291.46°)
OKLaboklab(50.61% -0.0048 -0.1543)
OKLCHoklch(50.61% 0.154 268.2)
XYZxyz(15.0155, 12.3737, 49.1643)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CBC #BCA040
analogous
#409ABC #405CBC #6240BC
triadic
#405CBC #BC405C #5CBC40
tetradic
#405CBC #BC409A #BCA040 #40BC62
square
#405CBC #BC409A #BCA040 #40BC62
split-complementary
#405CBC #BC6240 #9ABC40
monochromatic
#212F61 #30468E #405CBC #6C82CD #9AA9DD

Accessibility & contrast

On white

6.04
#405CBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#405CBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CBC
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CBC#FFFFFF#000000##FFFFFF
##405CBC1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2469BF
Deuteranopia (green-blind)
#005DBA
Tritanopia (blue-blind)
#007283
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405cbc;
/* rgb */ color: rgb(64, 92, 188);
/* oklch */ color: oklch(50.6% 0.154 268.2);
Tailwind
colors: {
  custom: {
    50: '#8289d1',
    500: '#405cbc',
    950: '#000000',
  },
}
SCSS
$custom: #405cbc;
$custom-light: #8289d1;
$custom-dark: #000000;
JSON
{
  "hex": "#405cbc",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 188
  },
  "hsl": {
    "h": 226.452,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50606,
    "c": 0.15434,
    "h": 268.2
  },
  "luminance": 0.12375
}

Semantic roles & 50–950 ramp

primary
#405CBC
secondary
#C9BC8F
accent
#BA4FD9
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #405CBC

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

Preview Lab → · Contrast checker → · Palette generator →

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