#405282#405282

#405282 is a dark, moderate blue. Relative luminance 0.087; OKLCH L 44.6% C 0.082 H 267.4°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#405282
RGBrgb(64, 82, 130)
HSLhsl(224, 34%, 38%)
HSVhsv(224, 51%, 51%)
CMYKcmyk(50.8%, 36.9%, 0%, 49%)
CIE-LABlab(35.47, 7.38, -29.18)
CIE-LCHlch(35.47, 30.10, 284.19°)
OKLaboklab(44.62% -0.0037 -0.0822)
OKLCHoklch(44.62% 0.082 267.4)
XYZxyz(9.1596, 8.7357, 22.3183)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405282 #827040
analogous
#407382 #405282 #4F4082
triadic
#405282 #824052 #528240
tetradic
#405282 #824073 #827040 #40824F
square
#405282 #824073 #827040 #40824F
split-complementary
#405282 #824F40 #738240
monochromatic
#181E30 #2C3859 #405282 #546CAB #7D8FBF

Accessibility & contrast

On white

7.64
#405282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#405282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405282
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405282#FFFFFF#000000##FFFFFF
##4052821.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405784
Deuteranopia (green-blind)
#395181
Tritanopia (blue-blind)
#245C64
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #405282;
/* rgb */ color: rgb(64, 82, 130);
/* oklch */ color: oklch(44.6% 0.082 267.4);
Tailwind
colors: {
  custom: {
    50: '#7982a6',
    500: '#405282',
    950: '#000000',
  },
}
SCSS
$custom: #405282;
$custom-light: #7982a6;
$custom-dark: #000000;
JSON
{
  "hex": "#405282",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 130
  },
  "hsl": {
    "h": 223.636,
    "s": 34.021,
    "l": 38.039
  },
  "oklch": {
    "l": 0.44624,
    "c": 0.08233,
    "h": 267.4
  },
  "luminance": 0.08736
}

Semantic roles & 50–950 ramp

primary
#405282
secondary
#AA9B74
accent
#AD5ECA
background
#F7F7FA
surface
#EEEEF4
border
#C9C9CE
text
#090A0F
muted
#7B7C7F

Preview Lab

Preview with #405282

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

Preview Lab → · Contrast checker → · Palette generator →

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