#405FBC#405FBC

#405FBC is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.2% C 0.151 H 267.1°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#405FBC
RGBrgb(64, 95, 188)
HSLhsl(225, 49%, 49%)
HSVhsv(225, 66%, 74%)
CMYKcmyk(66%, 49.5%, 0%, 26.3%)
CIE-LABlab(42.62, 19.21, -52.46)
CIE-LCHlch(42.62, 55.87, 290.11°)
OKLaboklab(51.23% -0.0076 -0.1504)
OKLCHoklch(51.23% 0.151 267.1)
XYZxyz(15.2805, 12.9038, 49.2526)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FBC #BC9D40
analogous
#409DBC #405FBC #5F40BC
triadic
#405FBC #BC405F #5FBC40
tetradic
#405FBC #BC409D #BC9D40 #40BC5F
square
#405FBC #BC409D #BC9D40 #40BC5F
split-complementary
#405FBC #BC5F40 #9DBC40
monochromatic
#213161 #30488E #405FBC #6C84CD #9AABDD

Accessibility & contrast

On white

5.86
#405FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#405FBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FBC
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FBC#FFFFFF#000000##FFFFFF
##405FBC1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C6BBF
Deuteranopia (green-blind)
#095FBA
Tritanopia (blue-blind)
#007584
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #405fbc;
/* rgb */ color: rgb(64, 95, 188);
/* oklch */ color: oklch(51.2% 0.151 267.1);
Tailwind
colors: {
  custom: {
    50: '#828bd1',
    500: '#405fbc',
    950: '#000000',
  },
}
SCSS
$custom: #405fbc;
$custom-light: #828bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#405fbc",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 188
  },
  "hsl": {
    "h": 225,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51225,
    "c": 0.15055,
    "h": 267.1
  },
  "luminance": 0.12905
}

Semantic roles & 50–950 ramp

primary
#405FBC
secondary
#C9BA8F
accent
#B64FD9
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0C14
muted
#7D7D82

Preview Lab

Preview with #405FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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