#40479B#40479B

#40479B is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.9% C 0.135 H 275.8°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#40479B
RGBrgb(64, 71, 155)
HSLhsl(235, 42%, 43%)
HSVhsv(235, 59%, 61%)
CMYKcmyk(58.7%, 54.2%, 0%, 39.2%)
CIE-LABlab(33.90, 23.14, -46.93)
CIE-LCHlch(33.90, 52.32, 296.24°)
OKLaboklab(43.93% 0.0135 -0.1344)
OKLCHoklch(43.93% 0.135 275.8)
XYZxyz(10.2821, 7.9623, 31.9990)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40479B #9B9440
analogous
#40749B #40479B #67409B
triadic
#40479B #9B4047 #479B40
tetradic
#40479B #9B4074 #9B9440 #409B67
square
#40479B #9B4074 #9B9440 #409B67
split-complementary
#40479B #9B6740 #749B40
monochromatic
#1C1F44 #2E3370 #40479B #5C64BC #888DCE

Accessibility & contrast

On white

8.10
#40479B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#40479B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40479B
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40479B#FFFFFF#000000##FFFFFF
##40479B1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14549E
Deuteranopia (green-blind)
#004C99
Tritanopia (blue-blind)
#035A6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #40479b;
/* rgb */ color: rgb(64, 71, 155);
/* oklch */ color: oklch(43.9% 0.135 275.8);
Tailwind
colors: {
  custom: {
    50: '#7d7ab9',
    500: '#40479b',
    950: '#000000',
  },
}
SCSS
$custom: #40479b;
$custom-light: #7d7ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#40479b",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 155
  },
  "hsl": {
    "h": 235.385,
    "s": 41.553,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43925,
    "c": 0.13507,
    "h": 275.8
  },
  "luminance": 0.07963
}

Semantic roles & 50–950 ramp

primary
#40479B
secondary
#B8B47E
accent
#C856D1
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0911
muted
#7C7B80

Preview Lab

Preview with #40479B

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

Preview Lab → · Contrast checker → · Palette generator →

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