#405182#405182

#405182 is a dark, moderate blue. Relative luminance 0.086; OKLCH L 44.4% C 0.084 H 268.4°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#405182
RGBrgb(64, 81, 130)
HSLhsl(225, 34%, 38%)
HSVhsv(225, 51%, 51%)
CMYKcmyk(50.8%, 37.7%, 0%, 49%)
CIE-LABlab(35.17, 8.03, -29.65)
CIE-LCHlch(35.17, 30.71, 285.15°)
OKLaboklab(44.4% -0.0024 -0.0836)
OKLCHoklch(44.4% 0.084 268.4)
XYZxyz(9.0847, 8.5860, 22.2933)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405182 #827140
analogous
#407282 #405182 #504082
triadic
#405182 #824051 #518240
tetradic
#405182 #824072 #827140 #408250
square
#405182 #824072 #827140 #408250
split-complementary
#405182 #825040 #728240
monochromatic
#181E30 #2C3759 #405182 #546BAB #7D8EBF

Accessibility & contrast

On white

7.73
#405182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#405182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405182
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405182#FFFFFF#000000##FFFFFF
##4051821.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5684
Deuteranopia (green-blind)
#375081
Tritanopia (blue-blind)
#255B63
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #405182;
/* rgb */ color: rgb(64, 81, 130);
/* oklch */ color: oklch(44.4% 0.084 268.4);
Tailwind
colors: {
  custom: {
    50: '#7981a6',
    500: '#405182',
    950: '#000000',
  },
}
SCSS
$custom: #405182;
$custom-light: #7981a6;
$custom-dark: #000000;
JSON
{
  "hex": "#405182",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 130
  },
  "hsl": {
    "h": 224.545,
    "s": 34.021,
    "l": 38.039
  },
  "oklch": {
    "l": 0.44395,
    "c": 0.08364,
    "h": 268.4
  },
  "luminance": 0.08587
}

Semantic roles & 50–950 ramp

primary
#405182
secondary
#AA9C74
accent
#AE5ECA
background
#F7F7FA
surface
#EEEEF4
border
#C9C9CE
text
#090A0F
muted
#7B7C7F

Preview Lab

Preview with #405182

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

Preview Lab → · Contrast checker → · Palette generator →

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