#405197#405197

#405197 is a mid, moderate blue. Relative luminance 0.092; OKLCH L 45.7% C 0.115 H 271.0°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#405197
RGBrgb(64, 81, 151)
HSLhsl(228, 40%, 42%)
HSVhsv(228, 58%, 59%)
CMYKcmyk(57.6%, 46.4%, 0%, 40.8%)
CIE-LABlab(36.38, 15.19, -40.53)
CIE-LCHlch(36.38, 43.28, 290.55°)
OKLaboklab(45.72% 0.0019 -0.1155)
OKLCHoklch(45.72% 0.115 271)
XYZxyz(10.6409, 9.2084, 30.4888)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405197 #978640
analogous
#407D97 #405197 #5B4097
triadic
#405197 #974051 #519740
tetradic
#405197 #97407D #978640 #40975B
square
#405197 #97407D #978640 #40975B
split-complementary
#405197 #975B40 #7D9740
monochromatic
#1C2341 #2E3A6C #405197 #5B6DB9 #8693CC

Accessibility & contrast

On white

7.39
#405197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#405197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405197
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405197#FFFFFF#000000##FFFFFF
##4051971.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315A9A
Deuteranopia (green-blind)
#265296
Tritanopia (blue-blind)
#09606C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #405197;
/* rgb */ color: rgb(64, 81, 151);
/* oklch */ color: oklch(45.7% 0.115 271.0);
Tailwind
colors: {
  custom: {
    50: '#7c81b6',
    500: '#405197',
    950: '#000000',
  },
}
SCSS
$custom: #405197;
$custom-light: #7c81b6;
$custom-dark: #000000;
JSON
{
  "hex": "#405197",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 151
  },
  "hsl": {
    "h": 228.276,
    "s": 40.465,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45716,
    "c": 0.11549,
    "h": 271
  },
  "luminance": 0.09209
}

Semantic roles & 50–950 ramp

primary
#405197
secondary
#B6AB7D
accent
#B957D0
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #405197

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

Preview Lab → · Contrast checker → · Palette generator →

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