#4045D1#4045D1

#4045D1 is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.1% C 0.210 H 273.7°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#4045D1
RGBrgb(64, 69, 209)
HSLhsl(238, 61%, 54%)
HSVhsv(238, 69%, 82%)
CMYKcmyk(69.4%, 67%, 0%, 18%)
CIE-LABlab(37.75, 42.94, -72.56)
CIE-LCHlch(37.75, 84.31, 300.61°)
OKLaboklab(48.11% 0.0135 -0.2097)
OKLCHoklch(48.11% 0.21 273.7)
XYZxyz(15.7473, 9.9482, 61.3995)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045D1 #D1CC40
analogous
#408DD1 #4045D1 #8340D1
triadic
#4045D1 #D14045 #45D140
tetradic
#4045D1 #D1408D #D1CC40 #40D183
square
#4045D1 #D1408D #D1CC40 #40D183
split-complementary
#4045D1 #D18340 #8DD140
monochromatic
#1D2079 #292EAB #4045D1 #7175DD #A3A5E9

Accessibility & contrast

On white

7.02
#4045D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#4045D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4045D1
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045D1#FFFFFF#000000##FFFFFF
##4045D11.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D5
Deuteranopia (green-blind)
#0052CE
Tritanopia (blue-blind)
#006A85
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4045d1;
/* rgb */ color: rgb(64, 69, 209);
/* oklch */ color: oklch(48.1% 0.210 273.7);
Tailwind
colors: {
  custom: {
    50: '#8879e0',
    500: '#4045d1',
    950: '#000000',
  },
}
SCSS
$custom: #4045d1;
$custom-light: #8879e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4045d1",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 209
  },
  "hsl": {
    "h": 237.931,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48107,
    "c": 0.2101,
    "h": 273.7
  },
  "luminance": 0.0995
}

Semantic roles & 50–950 ramp

primary
#4045D1
secondary
#D5D397
accent
#DF44E4
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4045D1

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

Preview Lab → · Contrast checker → · Palette generator →

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