#40479A#40479A

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

Color values

HEX#40479A
RGBrgb(64, 71, 154)
HSLhsl(235, 41%, 43%)
HSVhsv(235, 58%, 60%)
CMYKcmyk(58.4%, 53.9%, 0%, 39.6%)
CIE-LABlab(33.83, 22.79, -46.44)
CIE-LCHlch(33.83, 51.73, 296.14°)
OKLaboklab(43.85% 0.0135 -0.1329)
OKLCHoklch(43.85% 0.134 275.8)
XYZxyz(10.1984, 7.9288, 31.5586)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40479A #9A9340
analogous
#40749A #40479A #66409A
triadic
#40479A #9A4047 #479A40
tetradic
#40479A #9A4074 #9A9340 #409A66
square
#40479A #9A4074 #9A9340 #409A66
split-complementary
#40479A #9A6640 #749A40
monochromatic
#1C1F44 #2E336F #40479A #5C63BB #878DCD

Accessibility & contrast

On white

8.12
#40479A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40479A
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40479A#FFFFFF#000000##FFFFFF
##40479A1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16539D
Deuteranopia (green-blind)
#004C98
Tritanopia (blue-blind)
#065A69
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #40479a;
/* rgb */ color: rgb(64, 71, 154);
/* oklch */ color: oklch(43.9% 0.134 275.8);
Tailwind
colors: {
  custom: {
    50: '#7d7ab8',
    500: '#40479a',
    950: '#000000',
  },
}
SCSS
$custom: #40479a;
$custom-light: #7d7ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#40479a",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 154
  },
  "hsl": {
    "h": 235.333,
    "s": 41.284,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4385,
    "c": 0.13362,
    "h": 275.8
  },
  "luminance": 0.0793
}

Semantic roles & 50–950 ramp

primary
#40479A
secondary
#B8B37E
accent
#C857D1
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0911
muted
#7C7B80

Preview Lab

Preview with #40479A

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

Preview Lab → · Contrast checker → · Palette generator →

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