#404182#404182

#404182 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.9% C 0.107 H 279.9°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#404182
RGBrgb(64, 65, 130)
HSLhsl(239, 34%, 38%)
HSVhsv(239, 51%, 51%)
CMYKcmyk(50.8%, 50%, 0%, 49%)
CIE-LABlab(30.60, 18.57, -36.92)
CIE-LCHlch(30.60, 41.33, 296.70°)
OKLaboklab(40.9% 0.0184 -0.105)
OKLCHoklch(40.9% 0.107 279.9)
XYZxyz(8.0327, 6.4819, 21.9426)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404182 #828140
analogous
#406282 #404182 #604082
triadic
#404182 #824041 #418240
tetradic
#404182 #824062 #828140 #408260
square
#404182 #824062 #828140 #408260
split-complementary
#404182 #826040 #628240
monochromatic
#181830 #2C2C59 #404182 #5456AB #7D7EBF

Accessibility & contrast

On white

9.14
#404182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#404182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404182
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404182#FFFFFF#000000##FFFFFF
##4041821.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244B84
Deuteranopia (green-blind)
#1F4681
Tritanopia (blue-blind)
#274F5B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #404182;
/* rgb */ color: rgb(64, 65, 130);
/* oklch */ color: oklch(40.9% 0.107 279.9);
Tailwind
colors: {
  custom: {
    50: '#7a75a7',
    500: '#404182',
    950: '#000000',
  },
}
SCSS
$custom: #404182;
$custom-light: #7a75a7;
$custom-dark: #000000;
JSON
{
  "hex": "#404182",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 130
  },
  "hsl": {
    "h": 239.091,
    "s": 34.021,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40897,
    "c": 0.1066,
    "h": 279.9
  },
  "luminance": 0.06482
}

Semantic roles & 50–950 ramp

primary
#404182
secondary
#AAA974
accent
#C85ECA
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09080F
muted
#7B7B7F

Preview Lab

Preview with #404182

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

Preview Lab → · Contrast checker → · Palette generator →

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