#4045C5#4045C5

#4045C5 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 47.0% C 0.195 H 274.3°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#4045C5
RGBrgb(64, 69, 197)
HSLhsl(238, 53%, 51%)
HSVhsv(238, 68%, 77%)
CMYKcmyk(67.5%, 65%, 0%, 22.7%)
CIE-LABlab(36.70, 38.89, -67.32)
CIE-LCHlch(36.70, 77.75, 300.01°)
OKLaboklab(47.02% 0.0146 -0.1943)
OKLCHoklch(47.02% 0.195 274.3)
XYZxyz(14.3172, 9.3761, 53.8678)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045C5 #C5C040
analogous
#4087C5 #4045C5 #7D40C5
triadic
#4045C5 #C54045 #45C540
tetradic
#4045C5 #C54087 #C5C040 #40C57D
square
#4045C5 #C54087 #C5C040 #40C57D
split-complementary
#4045C5 #C57D40 #87C540
monochromatic
#20236A #2F3399 #4045C5 #6F73D3 #9EA0E2

Accessibility & contrast

On white

7.30
#4045C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#4045C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4045C5
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045C5#FFFFFF#000000##FFFFFF
##4045C51.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC9
Deuteranopia (green-blind)
#0050C3
Tritanopia (blue-blind)
#00667F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4045c5;
/* rgb */ color: rgb(64, 69, 197);
/* oklch */ color: oklch(47.0% 0.195 274.3);
Tailwind
colors: {
  custom: {
    50: '#8579d8',
    500: '#4045c5',
    950: '#000000',
  },
}
SCSS
$custom: #4045c5;
$custom-light: #8579d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4045c5",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 197
  },
  "hsl": {
    "h": 237.744,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47021,
    "c": 0.19487,
    "h": 274.3
  },
  "luminance": 0.09377
}

Semantic roles & 50–950 ramp

primary
#4045C5
secondary
#CECC93
accent
#D74BDD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #4045C5

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

Preview Lab → · Contrast checker → · Palette generator →

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