#4045AA#4045AA

#4045AA is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.7% C 0.159 H 275.7°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#4045AA
RGBrgb(64, 69, 170)
HSLhsl(237, 45%, 46%)
HSVhsv(237, 62%, 67%)
CMYKcmyk(62.4%, 59.4%, 0%, 33.3%)
CIE-LABlab(34.49, 29.63, -54.99)
CIE-LCHlch(34.49, 62.46, 298.31°)
OKLaboklab(44.71% 0.0159 -0.1581)
OKLCHoklch(44.71% 0.159 275.7)
XYZxyz(11.4958, 8.2476, 39.0086)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045AA #AAA540
analogous
#407AAA #4045AA #7040AA
triadic
#4045AA #AA4045 #45AA40
tetradic
#4045AA #AA407A #AAA540 #40AA70
square
#4045AA #AA407A #AAA540 #40AA70
split-complementary
#4045AA #AA7040 #7AAA40
monochromatic
#1F2151 #2F337E #4045AA #6368C4 #8F93D5

Accessibility & contrast

On white

7.93
#4045AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#4045AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4045AA#FFFFFF#000000##FFFFFF
##4045AA1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AD
Deuteranopia (green-blind)
#004DA8
Tritanopia (blue-blind)
#005E70
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4045aa;
/* rgb */ color: rgb(64, 69, 170);
/* oklch */ color: oklch(44.7% 0.159 275.7);
Tailwind
colors: {
  custom: {
    50: '#8078c4',
    500: '#4045aa',
    950: '#000000',
  },
}
SCSS
$custom: #4045aa;
$custom-light: #8078c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4045aa",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 170
  },
  "hsl": {
    "h": 237.17,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44714,
    "c": 0.15892,
    "h": 275.7
  },
  "luminance": 0.08249
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4045AA

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

Preview Lab → · Contrast checker → · Palette generator →

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