#4045CF#4045CF

#4045CF is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 47.9% C 0.208 H 273.8°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#4045CF
RGBrgb(64, 69, 207)
HSLhsl(238, 60%, 53%)
HSVhsv(238, 69%, 81%)
CMYKcmyk(69.1%, 66.7%, 0%, 18.8%)
CIE-LABlab(37.57, 42.27, -71.70)
CIE-LCHlch(37.57, 83.23, 300.52°)
OKLaboklab(47.92% 0.0137 -0.2071)
OKLCHoklch(47.92% 0.208 273.8)
XYZxyz(15.5012, 9.8498, 60.1037)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045CF #CFCA40
analogous
#408CCF #4045CF #8240CF
triadic
#4045CF #CF4045 #45CF40
tetradic
#4045CF #CF408C #CFCA40 #40CF82
square
#4045CF #CF408C #CFCA40 #40CF82
split-complementary
#4045CF #CF8240 #8CCF40
monochromatic
#1E2177 #2A2FA8 #4045CF #7175DB #A2A4E8

Accessibility & contrast

On white

7.07
#4045CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4045CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4045CF
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045CF#FFFFFF#000000##FFFFFF
##4045CF1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD3
Deuteranopia (green-blind)
#0052CC
Tritanopia (blue-blind)
#006A84
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4045cf;
/* rgb */ color: rgb(64, 69, 207);
/* oklch */ color: oklch(47.9% 0.208 273.8);
Tailwind
colors: {
  custom: {
    50: '#8779df',
    500: '#4045cf',
    950: '#000000',
  },
}
SCSS
$custom: #4045cf;
$custom-light: #8779df;
$custom-dark: #000000;
JSON
{
  "hex": "#4045cf",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 207
  },
  "hsl": {
    "h": 237.902,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.47923,
    "c": 0.20759,
    "h": 273.8
  },
  "luminance": 0.09851
}

Semantic roles & 50–950 ramp

primary
#4045CF
secondary
#D4D297
accent
#DD45E3
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4045CF

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

Preview Lab → · Contrast checker → · Palette generator →

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