#405398#405398

#405398 is a mid, moderate blue. Relative luminance 0.095; OKLCH L 46.2% C 0.114 H 269.9°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#405398
RGBrgb(64, 83, 152)
HSLhsl(227, 41%, 42%)
HSVhsv(227, 58%, 60%)
CMYKcmyk(57.9%, 45.4%, 0%, 40.4%)
CIE-LABlab(37.01, 14.24, -40.13)
CIE-LCHlch(37.01, 42.58, 289.53°)
OKLaboklab(46.21% -0.0002 -0.1143)
OKLCHoklch(46.21% 0.114 269.9)
XYZxyz(10.8732, 9.5427, 30.9686)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405398 #988540
analogous
#407F98 #405398 #594098
triadic
#405398 #984053 #539840
tetradic
#405398 #98407F #988540 #409859
square
#405398 #98407F #988540 #409859
split-complementary
#405398 #985940 #7F9840
monochromatic
#1C2442 #2E3B6D #405398 #5B70BA #8695CC

Accessibility & contrast

On white

7.22
#405398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#405398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405398
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405398#FFFFFF#000000##FFFFFF
##4053981.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345B9B
Deuteranopia (green-blind)
#295397
Tritanopia (blue-blind)
#05626E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #405398;
/* rgb */ color: rgb(64, 83, 152);
/* oklch */ color: oklch(46.2% 0.114 269.9);
Tailwind
colors: {
  custom: {
    50: '#7c83b7',
    500: '#405398',
    950: '#000000',
  },
}
SCSS
$custom: #405398;
$custom-light: #7c83b7;
$custom-dark: #000000;
JSON
{
  "hex": "#405398",
  "rgb": {
    "r": 64,
    "g": 83,
    "b": 152
  },
  "hsl": {
    "h": 227.045,
    "s": 40.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.46214,
    "c": 0.11428,
    "h": 269.9
  },
  "luminance": 0.09544
}

Semantic roles & 50–950 ramp

primary
#405398
secondary
#B7AA7D
accent
#B657D1
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #405398

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

Preview Lab → · Contrast checker → · Palette generator →

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