#404381#404381

#404381 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.2% C 0.102 H 278.8°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#404381
RGBrgb(64, 67, 129)
HSLhsl(237, 34%, 38%)
HSVhsv(237, 50%, 51%)
CMYKcmyk(50.4%, 48.1%, 0%, 49.4%)
CIE-LABlab(31.09, 16.91, -35.51)
CIE-LCHlch(31.09, 39.33, 295.46°)
OKLaboklab(41.25% 0.0157 -0.1009)
OKLCHoklch(41.25% 0.102 278.8)
XYZxyz(8.0827, 6.6888, 21.6298)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404381 #817E40
analogous
#406381 #404381 #5D4081
triadic
#404381 #814043 #438140
tetradic
#404381 #814063 #817E40 #40815D
square
#404381 #814063 #817E40 #40815D
split-complementary
#404381 #815D40 #638140
monochromatic
#17192F #2C2E58 #404381 #5458AA #7D80BE

Accessibility & contrast

On white

8.98
#404381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#404381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404381
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404381#FFFFFF#000000##FFFFFF
##4043811.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294C83
Deuteranopia (green-blind)
#234780
Tritanopia (blue-blind)
#28505B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #404381;
/* rgb */ color: rgb(64, 67, 129);
/* oklch */ color: oklch(41.2% 0.102 278.8);
Tailwind
colors: {
  custom: {
    50: '#7977a6',
    500: '#404381',
    950: '#000000',
  },
}
SCSS
$custom: #404381;
$custom-light: #7977a6;
$custom-dark: #000000;
JSON
{
  "hex": "#404381",
  "rgb": {
    "r": 64,
    "g": 67,
    "b": 129
  },
  "hsl": {
    "h": 237.231,
    "s": 33.679,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41247,
    "c": 0.10208,
    "h": 278.8
  },
  "luminance": 0.06689
}

Semantic roles & 50–950 ramp

primary
#404381
secondary
#A9A674
accent
#C55ECA
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09080F
muted
#7B7B7F

Preview Lab

Preview with #404381

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

Preview Lab → · Contrast checker → · Palette generator →

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