#4045BF#4045BF

#4045BF is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.5% C 0.187 H 274.6°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#4045BF
RGBrgb(64, 69, 191)
HSLhsl(238, 50%, 50%)
HSVhsv(238, 66%, 75%)
CMYKcmyk(66.5%, 63.9%, 0%, 25.1%)
CIE-LABlab(36.19, 36.84, -64.65)
CIE-LCHlch(36.19, 74.41, 299.68°)
OKLaboklab(46.49% 0.015 -0.1865)
OKLCHoklch(46.49% 0.187 274.6)
XYZxyz(13.6433, 9.1066, 50.3189)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045BF #BFBA40
analogous
#4084BF #4045BF #7B40BF
triadic
#4045BF #BF4045 #45BF40
tetradic
#4045BF #BF4084 #BFBA40 #40BF7B
square
#4045BF #BF4084 #BFBA40 #40BF7B
split-complementary
#4045BF #BF7B40 #84BF40
monochromatic
#212463 #313491 #4045BF #6E72CE #9C9EDE

Accessibility & contrast

On white

7.44
#4045BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#4045BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4045BF#FFFFFF#000000##FFFFFF
##4045BF1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC3
Deuteranopia (green-blind)
#004FBD
Tritanopia (blue-blind)
#00647B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4045bf;
/* rgb */ color: rgb(64, 69, 191);
/* oklch */ color: oklch(46.5% 0.187 274.6);
Tailwind
colors: {
  custom: {
    50: '#8479d3',
    500: '#4045bf',
    950: '#000000',
  },
}
SCSS
$custom: #4045bf;
$custom-light: #8479d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4045bf",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 191
  },
  "hsl": {
    "h": 237.638,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.46491,
    "c": 0.18709,
    "h": 274.6
  },
  "luminance": 0.09108
}

Semantic roles & 50–950 ramp

primary
#4045BF
secondary
#CAC891
accent
#D44ED9
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #4045BF

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

Preview Lab → · Contrast checker → · Palette generator →

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