#404188#404188

#404188 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 41.3% C 0.116 H 279.5°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#404188
RGBrgb(64, 65, 136)
HSLhsl(239, 36%, 39%)
HSVhsv(239, 53%, 53%)
CMYKcmyk(52.9%, 52.2%, 0%, 46.7%)
CIE-LABlab(30.99, 20.58, -40.00)
CIE-LCHlch(30.99, 44.99, 297.23°)
OKLaboklab(41.32% 0.019 -0.1141)
OKLCHoklch(41.32% 0.116 279.5)
XYZxyz(8.4472, 6.6477, 24.1258)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404188 #888740
analogous
#406588 #404188 #634088
triadic
#404188 #884041 #418840
tetradic
#404188 #884065 #888740 #408863
square
#404188 #884065 #888740 #408863
split-complementary
#404188 #886340 #658840
monochromatic
#191935 #2C2D5E #404188 #5657AF #7F80C3

Accessibility & contrast

On white

9.01
#404188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#404188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404188
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404188#FFFFFF#000000##FFFFFF
##4041881.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4C8B
Deuteranopia (green-blind)
#164686
Tritanopia (blue-blind)
#22515E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #404188;
/* rgb */ color: rgb(64, 65, 136);
/* oklch */ color: oklch(41.3% 0.116 279.5);
Tailwind
colors: {
  custom: {
    50: '#7a75ab',
    500: '#404188',
    950: '#000000',
  },
}
SCSS
$custom: #404188;
$custom-light: #7a75ab;
$custom-dark: #000000;
JSON
{
  "hex": "#404188",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 136
  },
  "hsl": {
    "h": 239.167,
    "s": 36,
    "l": 39.216
  },
  "oklch": {
    "l": 0.4132,
    "c": 0.11565,
    "h": 279.5
  },
  "luminance": 0.06648
}

Semantic roles & 50–950 ramp

primary
#404188
secondary
#ADAD76
accent
#CA5CCC
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #404188

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

Preview Lab → · Contrast checker → · Palette generator →

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