#4045B7#4045B7

#4045B7 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.8% C 0.177 H 275.0°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#4045B7
RGBrgb(64, 69, 183)
HSLhsl(237, 48%, 48%)
HSVhsv(237, 65%, 72%)
CMYKcmyk(65%, 62.3%, 0%, 28.2%)
CIE-LABlab(35.53, 34.11, -61.02)
CIE-LCHlch(35.53, 69.91, 299.20°)
OKLaboklab(45.8% 0.0155 -0.1758)
OKLCHoklch(45.8% 0.177 275)
XYZxyz(12.7869, 8.7640, 45.8083)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045B7 #B7B240
analogous
#4080B7 #4045B7 #7640B7
triadic
#4045B7 #B74045 #45B740
tetradic
#4045B7 #B74080 #B7B240 #40B776
square
#4045B7 #B74080 #B7B240 #40B776
split-complementary
#4045B7 #B77640 #80B740
monochromatic
#20235C #30348A #4045B7 #696ECB #979ADB

Accessibility & contrast

On white

7.63
#4045B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#4045B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4045B7
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045B7#FFFFFF#000000##FFFFFF
##4045B71.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BB
Deuteranopia (green-blind)
#004EB5
Tritanopia (blue-blind)
#006277
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4045b7;
/* rgb */ color: rgb(64, 69, 183);
/* oklch */ color: oklch(45.8% 0.177 275.0);
Tailwind
colors: {
  custom: {
    50: '#8379cd',
    500: '#4045b7',
    950: '#000000',
  },
}
SCSS
$custom: #4045b7;
$custom-light: #8379cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4045b7",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 183
  },
  "hsl": {
    "h": 237.479,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45799,
    "c": 0.17653,
    "h": 275
  },
  "luminance": 0.08765
}

Semantic roles & 50–950 ramp

primary
#4045B7
secondary
#C6C48D
accent
#D250D8
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0914
muted
#7D7B82

Preview Lab

Preview with #4045B7

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

Preview Lab → · Contrast checker → · Palette generator →

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