#404271#404271

#404271 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 40.0% C 0.079 H 280.4°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#404271
RGBrgb(64, 66, 113)
HSLhsl(238, 28%, 35%)
HSVhsv(238, 43%, 44%)
CMYKcmyk(43.4%, 41.6%, 0%, 55.7%)
CIE-LABlab(29.86, 12.34, -27.44)
CIE-LCHlch(29.86, 30.08, 294.22°)
OKLaboklab(40% 0.0141 -0.0772)
OKLCHoklch(40% 0.079 280.4)
XYZxyz(7.0423, 6.1784, 16.4411)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404271 #716F40
analogous
#405B71 #404271 #574071
triadic
#404271 #714042 #427140
tetradic
#404271 #71405B #716F40 #407157
square
#404271 #71405B #716F40 #407157
split-complementary
#404271 #715740 #5B7140
monochromatic
#141423 #2A2B4A #404271 #565998 #797BB3

Accessibility & contrast

On white

9.39
#404271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#404271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404271
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404271#FFFFFF#000000##FFFFFF
##4042711.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324873
Deuteranopia (green-blind)
#2F4570
Tritanopia (blue-blind)
#314B54
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #404271;
/* rgb */ color: rgb(64, 66, 113);
/* oklch */ color: oklch(40.0% 0.079 280.4);
Tailwind
colors: {
  custom: {
    50: '#77769a',
    500: '#404271',
    950: '#000000',
  },
}
SCSS
$custom: #404271;
$custom-light: #77769a;
$custom-dark: #000000;
JSON
{
  "hex": "#404271",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 237.551,
    "s": 27.684,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40004,
    "c": 0.07853,
    "h": 280.4
  },
  "luminance": 0.06179
}

Semantic roles & 50–950 ramp

primary
#404271
secondary
#9E9C6F
accent
#C064C4
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#09080E
muted
#7B7B7E

Preview Lab

Preview with #404271

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

Preview Lab → · Contrast checker → · Palette generator →

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