#404E95#404E95

#404E95 is a dark, moderate blue. Relative luminance 0.087; OKLCH L 44.9% C 0.117 H 272.5°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#404E95
RGBrgb(64, 78, 149)
HSLhsl(230, 40%, 42%)
HSVhsv(230, 57%, 58%)
CMYKcmyk(57%, 47.7%, 0%, 41.6%)
CIE-LABlab(35.42, 16.46, -40.87)
CIE-LCHlch(35.42, 44.06, 291.94°)
OKLaboklab(44.94% 0.0051 -0.1165)
OKLCHoklch(44.94% 0.117 272.5)
XYZxyz(10.2618, 8.7080, 29.5680)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404E95 #958740
analogous
#407995 #404E95 #5D4095
triadic
#404E95 #95404E #4E9540
tetradic
#404E95 #954079 #958740 #40955D
square
#404E95 #954079 #958740 #40955D
split-complementary
#404E95 #955D40 #799540
monochromatic
#1B213F #2E386A #404E95 #5A6AB8 #8590CB

Accessibility & contrast

On white

7.66
#404E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#404E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404E95
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404E95#FFFFFF#000000##FFFFFF
##404E951.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5798
Deuteranopia (green-blind)
#225093
Tritanopia (blue-blind)
#0F5E6A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #404e95;
/* rgb */ color: rgb(64, 78, 149);
/* oklch */ color: oklch(44.9% 0.117 272.5);
Tailwind
colors: {
  custom: {
    50: '#7c7fb4',
    500: '#404e95',
    950: '#000000',
  },
}
SCSS
$custom: #404e95;
$custom-light: #7c7fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#404e95",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 149
  },
  "hsl": {
    "h": 230.118,
    "s": 39.906,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44939,
    "c": 0.1166,
    "h": 272.5
  },
  "luminance": 0.08709
}

Semantic roles & 50–950 ramp

primary
#404E95
secondary
#B5AC7C
accent
#BC58D0
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #404E95

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

Preview Lab → · Contrast checker → · Palette generator →

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