#4045D2#4045D2

#4045D2 is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.2% C 0.211 H 273.6°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#4045D2
RGBrgb(64, 69, 210)
HSLhsl(238, 62%, 54%)
HSVhsv(238, 70%, 82%)
CMYKcmyk(69.5%, 67.1%, 0%, 17.6%)
CIE-LABlab(37.84, 43.27, -72.99)
CIE-LCHlch(37.84, 84.86, 300.66°)
OKLaboklab(48.2% 0.0133 -0.2109)
OKLCHoklch(48.2% 0.211 273.6)
XYZxyz(15.8715, 9.9979, 62.0536)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045D2 #D2CD40
analogous
#408ED2 #4045D2 #8440D2
triadic
#4045D2 #D24045 #45D240
tetradic
#4045D2 #D2408E #D2CD40 #40D284
square
#4045D2 #D2408E #D2CD40 #40D284
split-complementary
#4045D2 #D28440 #8ED240
monochromatic
#1D207B #292DAC #4045D2 #7275DE #A3A5E9

Accessibility & contrast

On white

7.00
#4045D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#4045D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4045D2
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045D2#FFFFFF#000000##FFFFFF
##4045D21.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D6
Deuteranopia (green-blind)
#0052CF
Tritanopia (blue-blind)
#006B86
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4045d2;
/* rgb */ color: rgb(64, 69, 210);
/* oklch */ color: oklch(48.2% 0.211 273.6);
Tailwind
colors: {
  custom: {
    50: '#8879e1',
    500: '#4045d2',
    950: '#000000',
  },
}
SCSS
$custom: #4045d2;
$custom-light: #8879e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4045d2",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 237.945,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.48199,
    "c": 0.21135,
    "h": 273.6
  },
  "luminance": 0.09999
}

Semantic roles & 50–950 ramp

primary
#4045D2
secondary
#D6D498
accent
#DF43E5
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4045D2

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

Preview Lab → · Contrast checker → · Palette generator →

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