#4045C6#4045C6

#4045C6 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 47.1% C 0.196 H 274.2°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#4045C6
RGBrgb(64, 69, 198)
HSLhsl(238, 54%, 51%)
HSVhsv(238, 68%, 78%)
CMYKcmyk(67.7%, 65.2%, 0%, 22.4%)
CIE-LABlab(36.78, 39.23, -67.76)
CIE-LCHlch(36.78, 78.30, 300.07°)
OKLaboklab(47.11% 0.0145 -0.1956)
OKLCHoklch(47.11% 0.196 274.2)
XYZxyz(14.4321, 9.4221, 54.4732)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045C6 #C6C140
analogous
#4088C6 #4045C6 #7E40C6
triadic
#4045C6 #C64045 #45C640
tetradic
#4045C6 #C64088 #C6C140 #40C67E
square
#4045C6 #C64088 #C6C140 #40C67E
split-complementary
#4045C6 #C67E40 #88C640
monochromatic
#20236C #2E329B #4045C6 #6F73D4 #9EA1E2

Accessibility & contrast

On white

7.28
#4045C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4045C6
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045C6#FFFFFF#000000##FFFFFF
##4045C61.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCA
Deuteranopia (green-blind)
#0050C4
Tritanopia (blue-blind)
#00677F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4045c6;
/* rgb */ color: rgb(64, 69, 198);
/* oklch */ color: oklch(47.1% 0.196 274.2);
Tailwind
colors: {
  custom: {
    50: '#8679d8',
    500: '#4045c6',
    950: '#000000',
  },
}
SCSS
$custom: #4045c6;
$custom-light: #8679d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4045c6",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 198
  },
  "hsl": {
    "h": 237.761,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.4711,
    "c": 0.19615,
    "h": 274.2
  },
  "luminance": 0.09423
}

Semantic roles & 50–950 ramp

primary
#4045C6
secondary
#CECC93
accent
#D84ADD
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0915
muted
#7D7B83

Preview Lab

Preview with #4045C6

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

Preview Lab → · Contrast checker → · Palette generator →

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