#404197#404197

#404197 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.4% C 0.138 H 278.3°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#404197
RGBrgb(64, 65, 151)
HSLhsl(239, 40%, 42%)
HSVhsv(239, 58%, 59%)
CMYKcmyk(57.6%, 57%, 0%, 40.8%)
CIE-LABlab(32.04, 25.68, -47.51)
CIE-LCHlch(32.04, 54.00, 298.39°)
OKLaboklab(42.44% 0.0198 -0.1361)
OKLCHoklch(42.44% 0.138 278.3)
XYZxyz(9.5888, 7.1043, 30.1381)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404197 #979640
analogous
#406D97 #404197 #6A4097
triadic
#404197 #974041 #419740
tetradic
#404197 #97406D #979640 #40976A
square
#404197 #97406D #979640 #40976A
split-complementary
#404197 #976A40 #6D9740
monochromatic
#1C1C41 #2E2E6C #404197 #5B5CB9 #8687CC

Accessibility & contrast

On white

8.67
#404197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#404197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404197
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404197#FFFFFF#000000##FFFFFF
##4041971.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#105565
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #404197;
/* rgb */ color: rgb(64, 65, 151);
/* oklch */ color: oklch(42.4% 0.138 278.3);
Tailwind
colors: {
  custom: {
    50: '#7d75b6',
    500: '#404197',
    950: '#000000',
  },
}
SCSS
$custom: #404197;
$custom-light: #7d75b6;
$custom-dark: #000000;
JSON
{
  "hex": "#404197",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 151
  },
  "hsl": {
    "h": 239.31,
    "s": 40.465,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42443,
    "c": 0.13759,
    "h": 278.3
  },
  "luminance": 0.07105
}

Semantic roles & 50–950 ramp

primary
#404197
secondary
#B6B67D
accent
#CF57D0
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #404197

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

Preview Lab → · Contrast checker → · Palette generator →

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