#4045B2#4045B2

#4045B2 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.4% C 0.170 H 275.3°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#4045B2
RGBrgb(64, 69, 178)
HSLhsl(237, 47%, 47%)
HSVhsv(237, 64%, 70%)
CMYKcmyk(64%, 61.2%, 0%, 30.2%)
CIE-LABlab(35.12, 32.39, -58.73)
CIE-LCHlch(35.12, 67.06, 298.88°)
OKLaboklab(45.38% 0.0157 -0.1691)
OKLCHoklch(45.38% 0.17 275.3)
XYZxyz(12.2757, 8.5596, 43.1161)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045B2 #B2AD40
analogous
#407EB2 #4045B2 #7440B2
triadic
#4045B2 #B24045 #45B240
tetradic
#4045B2 #B2407E #B2AD40 #40B274
square
#4045B2 #B2407E #B2AD40 #40B274
split-complementary
#4045B2 #B27440 #7EB240
monochromatic
#202258 #303485 #4045B2 #676BC8 #9497D8

Accessibility & contrast

On white

7.74
#4045B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#4045B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4045B2
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045B2#FFFFFF#000000##FFFFFF
##4045B21.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#006075
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4045b2;
/* rgb */ color: rgb(64, 69, 178);
/* oklch */ color: oklch(45.4% 0.170 275.3);
Tailwind
colors: {
  custom: {
    50: '#8279ca',
    500: '#4045b2',
    950: '#000000',
  },
}
SCSS
$custom: #4045b2;
$custom-light: #8279ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4045b2",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 237.368,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45376,
    "c": 0.16983,
    "h": 275.3
  },
  "luminance": 0.08561
}

Semantic roles & 50–950 ramp

primary
#4045B2
secondary
#C4C18A
accent
#D151D7
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #4045B2

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

Preview Lab → · Contrast checker → · Palette generator →

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