#404F95#404F95

#404F95 is a mid, moderate blue. Relative luminance 0.089; OKLCH L 45.2% C 0.115 H 272.0°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#404F95
RGBrgb(64, 79, 149)
HSLhsl(229, 40%, 42%)
HSVhsv(229, 57%, 58%)
CMYKcmyk(57%, 47%, 0%, 41.6%)
CIE-LABlab(35.70, 15.81, -40.42)
CIE-LCHlch(35.70, 43.40, 291.36°)
OKLaboklab(45.15% 0.0039 -0.1152)
OKLCHoklch(45.15% 0.115 272)
XYZxyz(10.3334, 8.8511, 29.5919)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404F95 #958640
analogous
#407A95 #404F95 #5C4095
triadic
#404F95 #95404F #4F9540
tetradic
#404F95 #95407A #958640 #40955C
square
#404F95 #95407A #958640 #40955C
split-complementary
#404F95 #955C40 #7A9540
monochromatic
#1B223F #2E386A #404F95 #5A6BB8 #8591CB

Accessibility & contrast

On white

7.58
#404F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#404F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404F95
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404F95#FFFFFF#000000##FFFFFF
##404F951.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5898
Deuteranopia (green-blind)
#245093
Tritanopia (blue-blind)
#0F5E6B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #404f95;
/* rgb */ color: rgb(64, 79, 149);
/* oklch */ color: oklch(45.2% 0.115 272.0);
Tailwind
colors: {
  custom: {
    50: '#7c80b4',
    500: '#404f95',
    950: '#000000',
  },
}
SCSS
$custom: #404f95;
$custom-light: #7c80b4;
$custom-dark: #000000;
JSON
{
  "hex": "#404f95",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 149
  },
  "hsl": {
    "h": 229.412,
    "s": 39.906,
    "l": 41.765
  },
  "oklch": {
    "l": 0.45153,
    "c": 0.11523,
    "h": 272
  },
  "luminance": 0.08852
}

Semantic roles & 50–950 ramp

primary
#404F95
secondary
#B5AB7C
accent
#BB58D0
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #404F95

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

Preview Lab → · Contrast checker → · Palette generator →

#404F95 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva