#405FFF#405FFF

#405FFF is a mid, highly saturated blue. Relative luminance 0.165; OKLCH L 56.5% C 0.238 H 268.7°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#405FFF
RGBrgb(64, 95, 255)
HSLhsl(230, 100%, 63%)
HSVhsv(230, 75%, 100%)
CMYKcmyk(74.9%, 62.7%, 0%, 0%)
CIE-LABlab(47.61, 42.93, -82.43)
CIE-LCHlch(47.61, 92.94, 297.51°)
OKLaboklab(56.52% -0.0054 -0.2384)
OKLCHoklch(56.52% 0.238 268.7)
XYZxyz(24.2503, 16.4917, 96.4935)
Luminance0.1649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FFF #FFE040
analogous
#40BEFF #405FFF #8140FF
triadic
#405FFF #FF405F #5FFF40
tetradic
#405FFF #FF40BE #FFE040 #40FF81
square
#405FFF #FF40BE #FFE040 #40FF81
split-complementary
#405FFF #FF8140 #BEFF40
monochromatic
#0020C5 #032CFF #405FFF #7D92FF #BAC6FF

Accessibility & contrast

On white

4.89
#405FFF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#405FFF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FFF
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FFF#FFFFFF#000000##FFFFFF
##405FFF1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007AFF
Deuteranopia (green-blind)
#0068FC
Tritanopia (blue-blind)
#0089A6
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #405fff;
/* rgb */ color: rgb(64, 95, 255);
/* oklch */ color: oklch(56.5% 0.238 268.7);
Tailwind
colors: {
  custom: {
    50: '#908cff',
    500: '#405fff',
    950: '#000000',
  },
}
SCSS
$custom: #405fff;
$custom-light: #908cff;
$custom-dark: #000000;
JSON
{
  "hex": "#405fff",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 255
  },
  "hsl": {
    "h": 230.262,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.56524,
    "c": 0.23846,
    "h": 268.7
  },
  "luminance": 0.16494
}

Semantic roles & 50–950 ramp

primary
#405FFF
secondary
#F0E5AB
accent
#C000E6
background
#F9F8FF
surface
#F2F0FF
border
#CCCBD7
text
#0F0C18
muted
#7E7D86

Preview Lab

Preview with #405FFF

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

Preview Lab → · Contrast checker → · Palette generator →

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