#4045C7#4045C7

#4045C7 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 47.2% C 0.197 H 274.2°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#4045C7
RGBrgb(64, 69, 199)
HSLhsl(238, 55%, 52%)
HSVhsv(238, 68%, 78%)
CMYKcmyk(67.8%, 65.3%, 0%, 22%)
CIE-LABlab(36.87, 39.57, -68.20)
CIE-LCHlch(36.87, 78.85, 300.12°)
OKLaboklab(47.2% 0.0144 -0.1969)
OKLCHoklch(47.2% 0.197 274.2)
XYZxyz(14.5479, 9.4684, 55.0827)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045C7 #C7C240
analogous
#4089C7 #4045C7 #7F40C7
triadic
#4045C7 #C74045 #45C740
tetradic
#4045C7 #C74089 #C7C240 #40C77F
square
#4045C7 #C74089 #C7C240 #40C77F
split-complementary
#4045C7 #C77F40 #89C740
monochromatic
#20236D #2E329C #4045C7 #6F73D5 #9FA1E3

Accessibility & contrast

On white

7.26
#4045C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#4045C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4045C7
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045C7#FFFFFF#000000##FFFFFF
##4045C71.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCB
Deuteranopia (green-blind)
#0051C5
Tritanopia (blue-blind)
#006780
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4045c7;
/* rgb */ color: rgb(64, 69, 199);
/* oklch */ color: oklch(47.2% 0.197 274.2);
Tailwind
colors: {
  custom: {
    50: '#8679d9',
    500: '#4045c7',
    950: '#000000',
  },
}
SCSS
$custom: #4045c7;
$custom-light: #8679d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4045c7",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 199
  },
  "hsl": {
    "h": 237.778,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47199,
    "c": 0.19744,
    "h": 274.2
  },
  "luminance": 0.0947
}

Semantic roles & 50–950 ramp

primary
#4045C7
secondary
#CFCD94
accent
#D94ADE
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0915
muted
#7D7B83

Preview Lab

Preview with #4045C7

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

Preview Lab → · Contrast checker → · Palette generator →

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