#40478E#40478E

#40478E is a dark, moderate blue. Relative luminance 0.075; OKLCH L 43.0% C 0.116 H 276.1°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#40478E
RGBrgb(64, 71, 142)
HSLhsl(235, 38%, 40%)
HSVhsv(235, 55%, 56%)
CMYKcmyk(54.9%, 50%, 0%, 44.3%)
CIE-LABlab(33.03, 18.66, -40.43)
CIE-LCHlch(33.03, 44.53, 294.77°)
OKLaboklab(42.98% 0.0124 -0.1153)
OKLCHoklch(42.98% 0.116 276.1)
XYZxyz(9.2485, 7.5489, 26.5557)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40478E #8E8740
analogous
#406E8E #40478E #60408E
triadic
#40478E #8E4047 #478E40
tetradic
#40478E #8E406E #8E8740 #408E60
square
#40478E #8E406E #8E8740 #408E60
split-complementary
#40478E #8E6040 #6E8E40
monochromatic
#1A1D3A #2D3264 #40478E #5860B4 #8288C7

Accessibility & contrast

On white

8.37
#40478E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#40478E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40478E
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40478E#FFFFFF#000000##FFFFFF
##40478E1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255191
Deuteranopia (green-blind)
#1C4B8C
Tritanopia (blue-blind)
#1B5763
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #40478e;
/* rgb */ color: rgb(64, 71, 142);
/* oklch */ color: oklch(43.0% 0.116 276.1);
Tailwind
colors: {
  custom: {
    50: '#7b7aaf',
    500: '#40478e',
    950: '#000000',
  },
}
SCSS
$custom: #40478e;
$custom-light: #7b7aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#40478e",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 142
  },
  "hsl": {
    "h": 234.615,
    "s": 37.864,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42981,
    "c": 0.11594,
    "h": 276.1
  },
  "luminance": 0.07549
}

Semantic roles & 50–950 ramp

primary
#40478E
secondary
#B1AC79
accent
#C35ACE
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#0A0910
muted
#7C7B7F

Preview Lab

Preview with #40478E

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

Preview Lab → · Contrast checker → · Palette generator →

#40478E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva