#4045BD#4045BD

#4045BD is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.3% C 0.184 H 274.7°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#4045BD
RGBrgb(64, 69, 189)
HSLhsl(238, 49%, 50%)
HSVhsv(238, 66%, 74%)
CMYKcmyk(66.1%, 63.5%, 0%, 25.9%)
CIE-LABlab(36.02, 36.16, -63.75)
CIE-LCHlch(36.02, 73.29, 299.56°)
OKLaboklab(46.32% 0.0152 -0.1838)
OKLCHoklch(46.32% 0.184 274.7)
XYZxyz(13.4247, 9.0192, 49.1677)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045BD #BDB840
analogous
#4084BD #4045BD #7A40BD
triadic
#4045BD #BD4045 #45BD40
tetradic
#4045BD #BD4084 #BDB840 #40BD7A
square
#4045BD #BD4084 #BDB840 #40BD7A
split-complementary
#4045BD #BD7A40 #84BD40
monochromatic
#212462 #31348F #4045BD #6D71CD #9A9DDD

Accessibility & contrast

On white

7.49
#4045BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##4045BD#FFFFFF#000000##FFFFFF
##4045BD1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC1
Deuteranopia (green-blind)
#004FBB
Tritanopia (blue-blind)
#00647A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4045bd;
/* rgb */ color: rgb(64, 69, 189);
/* oklch */ color: oklch(46.3% 0.184 274.7);
Tailwind
colors: {
  custom: {
    50: '#8479d2',
    500: '#4045bd',
    950: '#000000',
  },
}
SCSS
$custom: #4045bd;
$custom-light: #8479d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4045bd",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 189
  },
  "hsl": {
    "h": 237.6,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46316,
    "c": 0.18446,
    "h": 274.7
  },
  "luminance": 0.0902
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4045BD

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

Preview Lab → · Contrast checker → · Palette generator →

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