#4045B5#4045B5

#4045B5 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.6% C 0.174 H 275.2°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#4045B5
RGBrgb(64, 69, 181)
HSLhsl(237, 48%, 48%)
HSVhsv(237, 65%, 71%)
CMYKcmyk(64.6%, 61.9%, 0%, 29%)
CIE-LABlab(35.36, 33.42, -60.11)
CIE-LCHlch(35.36, 68.77, 299.07°)
OKLaboklab(45.63% 0.0156 -0.1732)
OKLCHoklch(45.63% 0.174 275.2)
XYZxyz(12.5802, 8.6814, 44.7198)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045B5 #B5B040
analogous
#407FB5 #4045B5 #7540B5
triadic
#4045B5 #B54045 #45B540
tetradic
#4045B5 #B5407F #B5B040 #40B575
square
#4045B5 #B5407F #B5B040 #40B575
split-complementary
#4045B5 #B57540 #7FB540
monochromatic
#20235B #303488 #4045B5 #686DCA #9699DA

Accessibility & contrast

On white

7.67
#4045B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#4045B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4045B5
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045B5#FFFFFF#000000##FFFFFF
##4045B51.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B9
Deuteranopia (green-blind)
#004EB3
Tritanopia (blue-blind)
#006176
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4045b5;
/* rgb */ color: rgb(64, 69, 181);
/* oklch */ color: oklch(45.6% 0.174 275.2);
Tailwind
colors: {
  custom: {
    50: '#8279cc',
    500: '#4045b5',
    950: '#000000',
  },
}
SCSS
$custom: #4045b5;
$custom-light: #8279cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4045b5",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 181
  },
  "hsl": {
    "h": 237.436,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45629,
    "c": 0.17386,
    "h": 275.2
  },
  "luminance": 0.08682
}

Semantic roles & 50–950 ramp

primary
#4045B5
secondary
#C5C38B
accent
#D250D7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #4045B5

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

Preview Lab → · Contrast checker → · Palette generator →

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