#4045CE#4045CE

#4045CE is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 47.8% C 0.206 H 273.8°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#4045CE
RGBrgb(64, 69, 206)
HSLhsl(238, 59%, 53%)
HSVhsv(238, 69%, 81%)
CMYKcmyk(68.9%, 66.5%, 0%, 19.2%)
CIE-LABlab(37.48, 41.93, -71.26)
CIE-LCHlch(37.48, 82.69, 300.47°)
OKLaboklab(47.83% 0.0138 -0.2059)
OKLCHoklch(47.83% 0.206 273.8)
XYZxyz(15.3793, 9.8010, 59.4618)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045CE #CEC940
analogous
#408CCE #4045CE #8240CE
triadic
#4045CE #CE4045 #45CE40
tetradic
#4045CE #CE408C #CEC940 #40CE82
square
#4045CE #CE408C #CEC940 #40CE82
split-complementary
#4045CE #CE8240 #8CCE40
monochromatic
#1E2175 #2B2FA6 #4045CE #7174DA #A1A4E7

Accessibility & contrast

On white

7.09
#4045CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#4045CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4045CE
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045CE#FFFFFF#000000##FFFFFF
##4045CE1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD2
Deuteranopia (green-blind)
#0052CB
Tritanopia (blue-blind)
#006984
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4045ce;
/* rgb */ color: rgb(64, 69, 206);
/* oklch */ color: oklch(47.8% 0.206 273.8);
Tailwind
colors: {
  custom: {
    50: '#8779de',
    500: '#4045ce',
    950: '#000000',
  },
}
SCSS
$custom: #4045ce;
$custom-light: #8779de;
$custom-dark: #000000;
JSON
{
  "hex": "#4045ce",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 206
  },
  "hsl": {
    "h": 237.887,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.47832,
    "c": 0.20633,
    "h": 273.8
  },
  "luminance": 0.09802
}

Semantic roles & 50–950 ramp

primary
#4045CE
secondary
#D4D196
accent
#DD45E2
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4045CE

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

Preview Lab → · Contrast checker → · Palette generator →

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