#405F94#405F94

#405F94 is a mid, moderate blue. Relative luminance 0.114; OKLCH L 48.7% C 0.093 H 260.6°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#405F94
RGBrgb(64, 95, 148)
HSLhsl(218, 40%, 42%)
HSVhsv(218, 57%, 58%)
CMYKcmyk(56.8%, 35.8%, 0%, 42%)
CIE-LABlab(40.27, 5.13, -32.56)
CIE-LCHlch(40.27, 32.96, 278.96°)
OKLaboklab(48.65% -0.0152 -0.092)
OKLCHoklch(48.65% 0.093 260.6)
XYZxyz(11.5500, 11.4116, 29.6052)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405F94 #947540
analogous
#408994 #405F94 #4B4094
triadic
#405F94 #94405F #5F9440
tetradic
#405F94 #944089 #947540 #40944B
square
#405F94 #944089 #947540 #40944B
split-complementary
#405F94 #944B40 #899440
monochromatic
#1B283F #2E4469 #405F94 #5A7CB8 #849ECA

Accessibility & contrast

On white

6.40
#405F94 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #405F94
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405F94#FFFFFF#000000##FFFFFF
##405F941.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A6396
Deuteranopia (green-blind)
#3F5B93
Tritanopia (blue-blind)
#096B72
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #405f94;
/* rgb */ color: rgb(64, 95, 148);
/* oklch */ color: oklch(48.7% 0.093 260.6);
Tailwind
colors: {
  custom: {
    50: '#7b8cb3',
    500: '#405f94',
    950: '#000000',
  },
}
SCSS
$custom: #405f94;
$custom-light: #7b8cb3;
$custom-dark: #000000;
JSON
{
  "hex": "#405f94",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 148
  },
  "hsl": {
    "h": 217.857,
    "s": 39.623,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48653,
    "c": 0.09325,
    "h": 260.6
  },
  "luminance": 0.11413
}

Semantic roles & 50–950 ramp

primary
#405F94
secondary
#B49F7B
accent
#A458D0
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#0A0C11
muted
#7C7D80

Preview Lab

Preview with #405F94

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

Preview Lab → · Contrast checker → · Palette generator →

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