#40458A#40458A

#40458A is a dark, moderate blue. Relative luminance 0.072; OKLCH L 42.3% C 0.113 H 277.3°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#40458A
RGBrgb(64, 69, 138)
HSLhsl(236, 37%, 40%)
HSVhsv(236, 54%, 54%)
CMYKcmyk(53.6%, 50%, 0%, 45.9%)
CIE-LABlab(32.21, 18.62, -39.27)
CIE-LCHlch(32.21, 43.46, 295.36°)
OKLaboklab(42.29% 0.0143 -0.1119)
OKLCHoklch(42.29% 0.113 277.3)
XYZxyz(8.8285, 7.1807, 24.9606)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40458A #8A8540
analogous
#406A8A #40458A #60408A
triadic
#40458A #8A4045 #458A40
tetradic
#40458A #8A406A #8A8540 #408A60
square
#40458A #8A406A #8A8540 #408A60
split-complementary
#40458A #8A6040 #6A8A40
monochromatic
#191B36 #2D3060 #40458A #565DB1 #8085C4

Accessibility & contrast

On white

8.62
#40458A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#40458A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40458A
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40458A#FFFFFF#000000##FFFFFF
##40458A1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254F8D
Deuteranopia (green-blind)
#1D4989
Tritanopia (blue-blind)
#205461
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #40458a;
/* rgb */ color: rgb(64, 69, 138);
/* oklch */ color: oklch(42.3% 0.113 277.3);
Tailwind
colors: {
  custom: {
    50: '#7b78ad',
    500: '#40458a',
    950: '#000000',
  },
}
SCSS
$custom: #40458a;
$custom-light: #7b78ad;
$custom-dark: #000000;
JSON
{
  "hex": "#40458a",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 138
  },
  "hsl": {
    "h": 235.946,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42285,
    "c": 0.11281,
    "h": 277.3
  },
  "luminance": 0.07181
}

Semantic roles & 50–950 ramp

primary
#40458A
secondary
#AFAB77
accent
#C55BCD
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0910
muted
#7C7B7F

Preview Lab

Preview with #40458A

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

Preview Lab → · Contrast checker → · Palette generator →

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