#4045AE#4045AE

#4045AE is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.0% C 0.164 H 275.5°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#4045AE
RGBrgb(64, 69, 174)
HSLhsl(237, 46%, 47%)
HSVhsv(237, 63%, 68%)
CMYKcmyk(63.2%, 60.3%, 0%, 31.8%)
CIE-LABlab(34.80, 31.01, -56.87)
CIE-LCHlch(34.80, 64.77, 298.60°)
OKLaboklab(45.04% 0.0158 -0.1636)
OKLCHoklch(45.04% 0.164 275.5)
XYZxyz(11.8800, 8.4013, 41.0318)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045AE #AEA940
analogous
#407CAE #4045AE #7240AE
triadic
#4045AE #AE4045 #45AE40
tetradic
#4045AE #AE407C #AEA940 #40AE72
square
#4045AE #AE407C #AEA940 #40AE72
split-complementary
#4045AE #AE7240 #7CAE40
monochromatic
#1F2255 #303381 #4045AE #6569C6 #9295D7

Accessibility & contrast

On white

7.83
#4045AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#4045AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4045AE#FFFFFF#000000##FFFFFF
##4045AE1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B1
Deuteranopia (green-blind)
#004DAC
Tritanopia (blue-blind)
#005F73
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4045ae;
/* rgb */ color: rgb(64, 69, 174);
/* oklch */ color: oklch(45.0% 0.164 275.5);
Tailwind
colors: {
  custom: {
    50: '#8178c7',
    500: '#4045ae',
    950: '#000000',
  },
}
SCSS
$custom: #4045ae;
$custom-light: #8178c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4045ae",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 174
  },
  "hsl": {
    "h": 237.273,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45043,
    "c": 0.16439,
    "h": 275.5
  },
  "luminance": 0.08402
}

Semantic roles & 50–950 ramp

primary
#4045AE
secondary
#C2BF88
accent
#D052D6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #4045AE

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

Preview Lab → · Contrast checker → · Palette generator →

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