#405397#405397

#405397 is a mid, moderate blue. Relative luminance 0.095; OKLCH L 46.1% C 0.113 H 269.8°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#405397
RGBrgb(64, 83, 151)
HSLhsl(227, 40%, 42%)
HSVhsv(227, 58%, 59%)
CMYKcmyk(57.6%, 45%, 0%, 40.8%)
CIE-LABlab(36.95, 13.89, -39.63)
CIE-LCHlch(36.95, 41.99, 289.31°)
OKLaboklab(46.15% -0.0004 -0.1128)
OKLCHoklch(46.15% 0.113 269.8)
XYZxyz(10.7917, 9.5101, 30.5391)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405397 #978440
analogous
#407E97 #405397 #594097
triadic
#405397 #974053 #539740
tetradic
#405397 #97407E #978440 #409759
square
#405397 #97407E #978440 #409759
split-complementary
#405397 #975940 #7E9740
monochromatic
#1C2441 #2E3B6C #405397 #5B6FB9 #8695CC

Accessibility & contrast

On white

7.24
#405397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#405397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405397
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405397#FFFFFF#000000##FFFFFF
##4053971.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355B9A
Deuteranopia (green-blind)
#2A5396
Tritanopia (blue-blind)
#08626D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #405397;
/* rgb */ color: rgb(64, 83, 151);
/* oklch */ color: oklch(46.1% 0.113 269.8);
Tailwind
colors: {
  custom: {
    50: '#7c83b6',
    500: '#405397',
    950: '#000000',
  },
}
SCSS
$custom: #405397;
$custom-light: #7c83b6;
$custom-dark: #000000;
JSON
{
  "hex": "#405397",
  "rgb": {
    "r": 64,
    "g": 83,
    "b": 151
  },
  "hsl": {
    "h": 226.897,
    "s": 40.465,
    "l": 42.157
  },
  "oklch": {
    "l": 0.46148,
    "c": 0.11279,
    "h": 269.8
  },
  "luminance": 0.09511
}

Semantic roles & 50–950 ramp

primary
#405397
secondary
#B6AA7D
accent
#B657D0
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #405397

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

Preview Lab → · Contrast checker → · Palette generator →

#405397 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva