#404185#404185

#404185 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 41.1% C 0.111 H 279.7°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#404185
RGBrgb(64, 65, 133)
HSLhsl(239, 35%, 39%)
HSVhsv(239, 52%, 52%)
CMYKcmyk(51.9%, 51.1%, 0%, 47.8%)
CIE-LABlab(30.79, 19.58, -38.47)
CIE-LCHlch(30.79, 43.16, 296.97°)
OKLaboklab(41.11% 0.0187 -0.1096)
OKLCHoklch(41.11% 0.111 279.7)
XYZxyz(8.2370, 6.5636, 23.0186)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404185 #858440
analogous
#406385 #404185 #614085
triadic
#404185 #854041 #418540
tetradic
#404185 #854063 #858440 #408561
square
#404185 #854063 #858440 #408561
split-complementary
#404185 #856140 #638540
monochromatic
#181932 #2C2D5C #404185 #5556AD #7E7FC1

Accessibility & contrast

On white

9.08
#404185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#404185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404185
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404185#FFFFFF#000000##FFFFFF
##4041851.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214B87
Deuteranopia (green-blind)
#1B4684
Tritanopia (blue-blind)
#25505C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #404185;
/* rgb */ color: rgb(64, 65, 133);
/* oklch */ color: oklch(41.1% 0.111 279.7);
Tailwind
colors: {
  custom: {
    50: '#7a75a9',
    500: '#404185',
    950: '#000000',
  },
}
SCSS
$custom: #404185;
$custom-light: #7a75a9;
$custom-dark: #000000;
JSON
{
  "hex": "#404185",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 133
  },
  "hsl": {
    "h": 239.13,
    "s": 35.025,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41107,
    "c": 0.11114,
    "h": 279.7
  },
  "luminance": 0.06564
}

Semantic roles & 50–950 ramp

primary
#404185
secondary
#ACAB75
accent
#C95DCB
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #404185

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

Preview Lab → · Contrast checker → · Palette generator →

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