#404875#404875

#404875 is a dark, moderate blue. Relative luminance 0.070; OKLCH L 41.6% C 0.076 H 275.0°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#404875
RGBrgb(64, 72, 117)
HSLhsl(231, 29%, 35%)
HSVhsv(231, 45%, 46%)
CMYKcmyk(45.3%, 38.5%, 0%, 54.1%)
CIE-LABlab(31.83, 9.65, -26.85)
CIE-LCHlch(31.83, 28.53, 289.77°)
OKLaboklab(41.59% 0.0066 -0.0755)
OKLCHoklch(41.59% 0.076 275)
XYZxyz(7.6416, 7.0087, 17.7763)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404875 #756D40
analogous
#406275 #404875 #524075
triadic
#404875 #754048 #487540
tetradic
#404875 #754062 #756D40 #407552
square
#404875 #754062 #756D40 #407552
split-complementary
#404875 #755240 #627540
monochromatic
#151726 #2A304D #404875 #56609D #7983B6

Accessibility & contrast

On white

8.74
#404875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#404875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404875
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404875#FFFFFF#000000##FFFFFF
##4048751.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384D77
Deuteranopia (green-blind)
#344974
Tritanopia (blue-blind)
#2E5159
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #404875;
/* rgb */ color: rgb(64, 72, 117);
/* oklch */ color: oklch(41.6% 0.076 275.0);
Tailwind
colors: {
  custom: {
    50: '#787a9d',
    500: '#404875',
    950: '#000000',
  },
}
SCSS
$custom: #404875;
$custom-light: #787a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#404875",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 117
  },
  "hsl": {
    "h": 230.943,
    "s": 29.282,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41586,
    "c": 0.0758,
    "h": 275
  },
  "luminance": 0.07009
}

Semantic roles & 50–950 ramp

primary
#404875
secondary
#A19970
accent
#B762C6
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#09090E
muted
#7B7B7E

Preview Lab

Preview with #404875

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

Preview Lab → · Contrast checker → · Palette generator →

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