#404281#404281

#404281 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 41.0% C 0.104 H 279.4°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#404281
RGBrgb(64, 66, 129)
HSLhsl(238, 34%, 38%)
HSVhsv(238, 50%, 51%)
CMYKcmyk(50.4%, 48.8%, 0%, 49.4%)
CIE-LABlab(30.81, 17.57, -35.96)
CIE-LCHlch(30.81, 40.02, 296.05°)
OKLaboklab(41.04% 0.017 -0.1022)
OKLCHoklch(41.04% 0.104 279.4)
XYZxyz(8.0238, 6.5710, 21.6101)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404281 #817F40
analogous
#406281 #404281 #5E4081
triadic
#404281 #814042 #428140
tetradic
#404281 #814062 #817F40 #40815E
square
#404281 #814062 #817F40 #40815E
split-complementary
#404281 #815E40 #628140
monochromatic
#17182F #2C2D58 #404281 #5457AA #7D7FBE

Accessibility & contrast

On white

9.07
#404281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #404281
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404281#FFFFFF#000000##FFFFFF
##4042811.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274B83
Deuteranopia (green-blind)
#224680
Tritanopia (blue-blind)
#284F5B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #404281;
/* rgb */ color: rgb(64, 66, 129);
/* oklch */ color: oklch(41.0% 0.104 279.4);
Tailwind
colors: {
  custom: {
    50: '#7976a6',
    500: '#404281',
    950: '#000000',
  },
}
SCSS
$custom: #404281;
$custom-light: #7976a6;
$custom-dark: #000000;
JSON
{
  "hex": "#404281",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 129
  },
  "hsl": {
    "h": 238.154,
    "s": 33.679,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41037,
    "c": 0.10358,
    "h": 279.4
  },
  "luminance": 0.06571
}

Semantic roles & 50–950 ramp

primary
#404281
secondary
#A9A774
accent
#C65ECA
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09080F
muted
#7B7B7F

Preview Lab

Preview with #404281

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

Preview Lab → · Contrast checker → · Palette generator →

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