#40479E#40479E

#40479E is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.2% C 0.139 H 275.6°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#40479E
RGBrgb(64, 71, 158)
HSLhsl(236, 42%, 44%)
HSVhsv(236, 59%, 62%)
CMYKcmyk(59.5%, 55.1%, 0%, 38%)
CIE-LABlab(34.12, 24.18, -48.40)
CIE-LCHlch(34.12, 54.10, 296.54°)
OKLaboklab(44.15% 0.0137 -0.1387)
OKLCHoklch(44.15% 0.139 275.6)
XYZxyz(10.5371, 8.0643, 33.3424)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40479E #9E9740
analogous
#40769E #40479E #68409E
triadic
#40479E #9E4047 #479E40
tetradic
#40479E #9E4076 #9E9740 #409E68
square
#40479E #9E4076 #9E9740 #409E68
split-complementary
#40479E #9E6840 #769E40
monochromatic
#1D2047 #2E3372 #40479E #5E65BE #898ECF

Accessibility & contrast

On white

8.04
#40479E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#40479E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40479E
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40479E#FFFFFF#000000##FFFFFF
##40479E1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D54A1
Deuteranopia (green-blind)
#004C9C
Tritanopia (blue-blind)
#005B6B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #40479e;
/* rgb */ color: rgb(64, 71, 158);
/* oklch */ color: oklch(44.2% 0.139 275.6);
Tailwind
colors: {
  custom: {
    50: '#7e7abb',
    500: '#40479e',
    950: '#000000',
  },
}
SCSS
$custom: #40479e;
$custom-light: #7e7abb;
$custom-dark: #000000;
JSON
{
  "hex": "#40479e",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 158
  },
  "hsl": {
    "h": 235.532,
    "s": 42.342,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44152,
    "c": 0.13938,
    "h": 275.6
  },
  "luminance": 0.08065
}

Semantic roles & 50–950 ramp

primary
#40479E
secondary
#BAB680
accent
#C956D2
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #40479E

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

Preview Lab → · Contrast checker → · Palette generator →

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