#404198#404198

#404198 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.139 H 278.2°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#404198
RGBrgb(64, 65, 152)
HSLhsl(239, 41%, 42%)
HSVhsv(239, 58%, 60%)
CMYKcmyk(57.9%, 57.2%, 0%, 40.4%)
CIE-LABlab(32.12, 26.02, -48.00)
CIE-LCHlch(32.12, 54.60, 298.46°)
OKLaboklab(42.52% 0.0198 -0.1376)
OKLCHoklch(42.52% 0.139 278.2)
XYZxyz(9.6703, 7.1369, 30.5677)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404198 #989740
analogous
#406D98 #404198 #6B4098
triadic
#404198 #984041 #419840
tetradic
#404198 #98406D #989740 #40986B
square
#404198 #98406D #989740 #40986B
split-complementary
#404198 #986B40 #6D9840
monochromatic
#1C1C42 #2E2F6D #404198 #5B5CBA #8687CC

Accessibility & contrast

On white

8.65
#404198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#404198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404198
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404198#FFFFFF#000000##FFFFFF
##4041981.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9B
Deuteranopia (green-blind)
#004896
Tritanopia (blue-blind)
#0D5566
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #404198;
/* rgb */ color: rgb(64, 65, 152);
/* oklch */ color: oklch(42.5% 0.139 278.2);
Tailwind
colors: {
  custom: {
    50: '#7d75b7',
    500: '#404198',
    950: '#000000',
  },
}
SCSS
$custom: #404198;
$custom-light: #7d75b7;
$custom-dark: #000000;
JSON
{
  "hex": "#404198",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 152
  },
  "hsl": {
    "h": 239.318,
    "s": 40.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42521,
    "c": 0.13901,
    "h": 278.2
  },
  "luminance": 0.07138
}

Semantic roles & 50–950 ramp

primary
#404198
secondary
#B7B67D
accent
#CF57D1
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #404198

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

Preview Lab → · Contrast checker → · Palette generator →

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