#404397#404397

#404397 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.8% C 0.135 H 277.5°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#404397
RGBrgb(64, 67, 151)
HSLhsl(238, 40%, 42%)
HSVhsv(238, 58%, 59%)
CMYKcmyk(57.6%, 55.6%, 0%, 40.8%)
CIE-LABlab(32.56, 24.37, -46.67)
CIE-LCHlch(32.56, 52.65, 297.58°)
OKLaboklab(42.83% 0.0177 -0.1336)
OKLCHoklch(42.83% 0.135 277.5)
XYZxyz(9.7056, 7.3380, 30.1771)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404397 #979440
analogous
#406F97 #404397 #694097
triadic
#404397 #974043 #439740
tetradic
#404397 #97406F #979440 #409769
square
#404397 #97406F #979440 #409769
split-complementary
#404397 #976940 #6F9740
monochromatic
#1C1D41 #2E306C #404397 #5B5EB9 #8688CC

Accessibility & contrast

On white

8.51
#404397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#404397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404397
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404397#FFFFFF#000000##FFFFFF
##4043971.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B509A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#0F5666
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #404397;
/* rgb */ color: rgb(64, 67, 151);
/* oklch */ color: oklch(42.8% 0.135 277.5);
Tailwind
colors: {
  custom: {
    50: '#7d77b6',
    500: '#404397',
    950: '#000000',
  },
}
SCSS
$custom: #404397;
$custom-light: #7d77b6;
$custom-dark: #000000;
JSON
{
  "hex": "#404397",
  "rgb": {
    "r": 64,
    "g": 67,
    "b": 151
  },
  "hsl": {
    "h": 237.931,
    "s": 40.465,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42832,
    "c": 0.13481,
    "h": 277.5
  },
  "luminance": 0.07339
}

Semantic roles & 50–950 ramp

primary
#404397
secondary
#B6B47D
accent
#CC57D0
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #404397

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

Preview Lab → · Contrast checker → · Palette generator →

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