#405284#405284

#405284 is a dark, moderate blue. Relative luminance 0.088; OKLCH L 44.7% C 0.085 H 267.9°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#405284
RGBrgb(64, 82, 132)
HSLhsl(224, 35%, 38%)
HSVhsv(224, 52%, 52%)
CMYKcmyk(51.5%, 37.9%, 0%, 48.2%)
CIE-LABlab(35.58, 8.05, -30.24)
CIE-LCHlch(35.58, 31.29, 284.90°)
OKLaboklab(44.74% -0.0032 -0.0853)
OKLCHoklch(44.74% 0.085 267.9)
XYZxyz(9.2951, 8.7899, 23.0321)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405284 #847240
analogous
#407484 #405284 #504084
triadic
#405284 #844052 #528440
tetradic
#405284 #844074 #847240 #408450
square
#405284 #844074 #847240 #408450
split-complementary
#405284 #845040 #748440
monochromatic
#181F32 #2C385B #405284 #556CAC #7E90C0

Accessibility & contrast

On white

7.61
#405284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#405284 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405284
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405284#FFFFFF#000000##FFFFFF
##4052841.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5786
Deuteranopia (green-blind)
#375183
Tritanopia (blue-blind)
#235D64
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #405284;
/* rgb */ color: rgb(64, 82, 132);
/* oklch */ color: oklch(44.7% 0.085 267.9);
Tailwind
colors: {
  custom: {
    50: '#7982a8',
    500: '#405284',
    950: '#000000',
  },
}
SCSS
$custom: #405284;
$custom-light: #7982a8;
$custom-dark: #000000;
JSON
{
  "hex": "#405284",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 132
  },
  "hsl": {
    "h": 224.118,
    "s": 34.694,
    "l": 38.431
  },
  "oklch": {
    "l": 0.44741,
    "c": 0.0854,
    "h": 267.9
  },
  "luminance": 0.08791
}

Semantic roles & 50–950 ramp

primary
#405284
secondary
#AB9D75
accent
#AE5DCB
background
#F7F7FA
surface
#EEEEF4
border
#C9C9CE
text
#090A0F
muted
#7B7C7F

Preview Lab

Preview with #405284

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

Preview Lab → · Contrast checker → · Palette generator →

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