#4045BC#4045BC

#4045BC is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.2% C 0.183 H 274.8°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#4045BC
RGBrgb(64, 69, 188)
HSLhsl(238, 49%, 49%)
HSVhsv(238, 66%, 74%)
CMYKcmyk(66%, 63.3%, 0%, 26.3%)
CIE-LABlab(35.94, 35.82, -63.30)
CIE-LCHlch(35.94, 72.73, 299.51°)
OKLaboklab(46.23% 0.0152 -0.1825)
OKLCHoklch(46.23% 0.183 274.8)
XYZxyz(13.3166, 8.9759, 48.5980)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045BC #BCB740
analogous
#4083BC #4045BC #7940BC
triadic
#4045BC #BC4045 #45BC40
tetradic
#4045BC #BC4083 #BCB740 #40BC79
square
#4045BC #BC4083 #BCB740 #40BC79
split-complementary
#4045BC #BC7940 #83BC40
monochromatic
#212361 #30348E #4045BC #6C70CD #9A9DDD

Accessibility & contrast

On white

7.51
#4045BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#4045BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4045BC#FFFFFF#000000##FFFFFF
##4045BC1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#004FBA
Tritanopia (blue-blind)
#00637A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4045bc;
/* rgb */ color: rgb(64, 69, 188);
/* oklch */ color: oklch(46.2% 0.183 274.8);
Tailwind
colors: {
  custom: {
    50: '#8479d1',
    500: '#4045bc',
    950: '#000000',
  },
}
SCSS
$custom: #4045bc;
$custom-light: #8479d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4045bc",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 237.581,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46229,
    "c": 0.18316,
    "h": 274.8
  },
  "luminance": 0.08977
}

Semantic roles & 50–950 ramp

primary
#4045BC
secondary
#C9C68F
accent
#D34FD9
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #4045BC

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

Preview Lab → · Contrast checker → · Palette generator →

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