#405181#405181

#405181 is a dark, moderate blue. Relative luminance 0.086; OKLCH L 44.3% C 0.082 H 268.2°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#405181
RGBrgb(64, 81, 129)
HSLhsl(224, 34%, 38%)
HSVhsv(224, 50%, 51%)
CMYKcmyk(50.4%, 37.2%, 0%, 49.4%)
CIE-LABlab(35.12, 7.70, -29.11)
CIE-LCHlch(35.12, 30.11, 284.81°)
OKLaboklab(44.34% -0.0026 -0.0821)
OKLCHoklch(44.34% 0.082 268.2)
XYZxyz(9.0180, 8.5593, 21.9415)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405181 #817040
analogous
#407181 #405181 #4F4081
triadic
#405181 #814051 #518140
tetradic
#405181 #814071 #817040 #40814F
square
#405181 #814071 #817040 #40814F
split-complementary
#405181 #814F40 #718140
monochromatic
#171E2F #2C3758 #405181 #546BAA #7D8EBE

Accessibility & contrast

On white

7.74
#405181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#405181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405181
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405181#FFFFFF#000000##FFFFFF
##4051811.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #405181;
/* rgb */ color: rgb(64, 81, 129);
/* oklch */ color: oklch(44.3% 0.082 268.2);
Tailwind
colors: {
  custom: {
    50: '#7981a6',
    500: '#405181',
    950: '#000000',
  },
}
SCSS
$custom: #405181;
$custom-light: #7981a6;
$custom-dark: #000000;
JSON
{
  "hex": "#405181",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 129
  },
  "hsl": {
    "h": 224.308,
    "s": 33.679,
    "l": 37.843
  },
  "oklch": {
    "l": 0.44337,
    "c": 0.08211,
    "h": 268.2
  },
  "luminance": 0.0856
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405181

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

Preview Lab → · Contrast checker → · Palette generator →

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