#4045AC#4045AC

#4045AC is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.9% C 0.162 H 275.6°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#4045AC
RGBrgb(64, 69, 172)
HSLhsl(237, 46%, 46%)
HSVhsv(237, 63%, 67%)
CMYKcmyk(62.8%, 59.9%, 0%, 32.5%)
CIE-LABlab(34.65, 30.32, -55.93)
CIE-LCHlch(34.65, 63.62, 298.46°)
OKLaboklab(44.88% 0.0159 -0.1609)
OKLCHoklch(44.88% 0.162 275.6)
XYZxyz(11.6864, 8.3238, 40.0125)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045AC #ACA740
analogous
#407BAC #4045AC #7140AC
triadic
#4045AC #AC4045 #45AC40
tetradic
#4045AC #AC407B #ACA740 #40AC71
square
#4045AC #AC407B #ACA740 #40AC71
split-complementary
#4045AC #AC7140 #7BAC40
monochromatic
#1F2153 #2F337F #4045AC #6468C5 #9194D6

Accessibility & contrast

On white

7.88
#4045AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#4045AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4045AC#FFFFFF#000000##FFFFFF
##4045AC1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AF
Deuteranopia (green-blind)
#004DAA
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4045ac;
/* rgb */ color: rgb(64, 69, 172);
/* oklch */ color: oklch(44.9% 0.162 275.6);
Tailwind
colors: {
  custom: {
    50: '#8078c6',
    500: '#4045ac',
    950: '#000000',
  },
}
SCSS
$custom: #4045ac;
$custom-light: #8078c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4045ac",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 172
  },
  "hsl": {
    "h": 237.222,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44878,
    "c": 0.16166,
    "h": 275.6
  },
  "luminance": 0.08325
}

Semantic roles & 50–950 ramp

primary
#4045AC
secondary
#C1BE87
accent
#CF52D5
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #4045AC

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

Preview Lab → · Contrast checker → · Palette generator →

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