#4045AB#4045AB

#4045AB is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.8% C 0.160 H 275.7°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#4045AB
RGBrgb(64, 69, 171)
HSLhsl(237, 46%, 46%)
HSVhsv(237, 63%, 67%)
CMYKcmyk(62.6%, 59.6%, 0%, 32.9%)
CIE-LABlab(34.57, 29.97, -55.46)
CIE-LCHlch(34.57, 63.04, 298.39°)
OKLaboklab(44.8% 0.0159 -0.1595)
OKLCHoklch(44.8% 0.16 275.7)
XYZxyz(11.5908, 8.2856, 39.5087)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045AB #ABA640
analogous
#407AAB #4045AB #7040AB
triadic
#4045AB #AB4045 #45AB40
tetradic
#4045AB #AB407A #ABA640 #40AB70
square
#4045AB #AB407A #ABA640 #40AB70
split-complementary
#4045AB #AB7040 #7AAB40
monochromatic
#1F2152 #2F337E #4045AB #6368C5 #9093D5

Accessibility & contrast

On white

7.90
#4045AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#4045AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4045AB
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045AB#FFFFFF#000000##FFFFFF
##4045AB1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AE
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#005E71
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4045ab;
/* rgb */ color: rgb(64, 69, 171);
/* oklch */ color: oklch(44.8% 0.160 275.7);
Tailwind
colors: {
  custom: {
    50: '#8078c5',
    500: '#4045ab',
    950: '#000000',
  },
}
SCSS
$custom: #4045ab;
$custom-light: #8078c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4045ab",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 237.196,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44796,
    "c": 0.16029,
    "h": 275.7
  },
  "luminance": 0.08287
}

Semantic roles & 50–950 ramp

primary
#4045AB
secondary
#C1BE86
accent
#CF53D5
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #4045AB

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

Preview Lab → · Contrast checker → · Palette generator →

#4045AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva