#404166#404166

#404166 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.1% C 0.062 H 281.9°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#404166
RGBrgb(64, 65, 102)
HSLhsl(238, 23%, 33%)
HSVhsv(238, 37%, 40%)
CMYKcmyk(37.3%, 36.3%, 0%, 60%)
CIE-LABlab(28.98, 9.57, -21.82)
CIE-LCHlch(28.98, 23.83, 293.67°)
OKLaboklab(39.14% 0.0129 -0.061)
OKLCHoklch(39.14% 0.062 281.9)
XYZxyz(6.4023, 5.8297, 13.3557)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404166 #666540
analogous
#405466 #404166 #524066
triadic
#404166 #664041 #416640
tetradic
#404166 #664054 #666540 #406652
square
#404166 #664054 #666540 #406652
split-complementary
#404166 #665240 #546640
monochromatic
#11111B #282940 #404166 #58598C #7778AA

Accessibility & contrast

On white

9.70
#404166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#404166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404166
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404166#FFFFFF#000000##FFFFFF
##4041661.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354668
Deuteranopia (green-blind)
#344365
Tritanopia (blue-blind)
#36484E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #404166;
/* rgb */ color: rgb(64, 65, 102);
/* oklch */ color: oklch(39.1% 0.062 281.9);
Tailwind
colors: {
  custom: {
    50: '#767592',
    500: '#404166',
    950: '#000000',
  },
}
SCSS
$custom: #404166;
$custom-light: #767592;
$custom-dark: #000000;
JSON
{
  "hex": "#404166",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 102
  },
  "hsl": {
    "h": 238.421,
    "s": 22.892,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39137,
    "c": 0.06231,
    "h": 281.9
  },
  "luminance": 0.0583
}

Semantic roles & 50–950 ramp

primary
#404166
secondary
#95946D
accent
#BD68BF
background
#F7F7F8
surface
#EDEDF0
border
#C8C8CB
text
#08080D
muted
#7B7B7D

Preview Lab

Preview with #404166

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

Preview Lab → · Contrast checker → · Palette generator →

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