#4045C4#4045C4

#4045C4 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.9% C 0.194 H 274.3°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#4045C4
RGBrgb(64, 69, 196)
HSLhsl(238, 53%, 51%)
HSVhsv(238, 67%, 77%)
CMYKcmyk(67.3%, 64.8%, 0%, 23.1%)
CIE-LABlab(36.61, 38.55, -66.88)
CIE-LCHlch(36.61, 77.19, 299.96°)
OKLaboklab(46.93% 0.0147 -0.193)
OKLCHoklch(46.93% 0.194 274.3)
XYZxyz(14.2030, 9.3305, 53.2663)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045C4 #C4BF40
analogous
#4087C4 #4045C4 #7D40C4
triadic
#4045C4 #C44045 #45C440
tetradic
#4045C4 #C44087 #C4BF40 #40C47D
square
#4045C4 #C44087 #C4BF40 #40C47D
split-complementary
#4045C4 #C47D40 #87C440
monochromatic
#202369 #2F3398 #4045C4 #6F73D2 #9EA0E1

Accessibility & contrast

On white

7.33
#4045C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#4045C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4045C4
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045C4#FFFFFF#000000##FFFFFF
##4045C41.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC8
Deuteranopia (green-blind)
#0050C2
Tritanopia (blue-blind)
#00667E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4045c4;
/* rgb */ color: rgb(64, 69, 196);
/* oklch */ color: oklch(46.9% 0.194 274.3);
Tailwind
colors: {
  custom: {
    50: '#8579d7',
    500: '#4045c4',
    950: '#000000',
  },
}
SCSS
$custom: #4045c4;
$custom-light: #8579d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4045c4",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 196
  },
  "hsl": {
    "h": 237.727,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.46932,
    "c": 0.19358,
    "h": 274.3
  },
  "luminance": 0.09332
}

Semantic roles & 50–950 ramp

primary
#4045C4
secondary
#CDCB93
accent
#D74CDC
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #4045C4

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

Preview Lab → · Contrast checker → · Palette generator →

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