#4047E0#4047E0

#4047E0 is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 49.8% C 0.226 H 272.7°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#4047E0
RGBrgb(64, 71, 224)
HSLhsl(237, 72%, 56%)
HSVhsv(237, 71%, 88%)
CMYKcmyk(71.4%, 68.3%, 0%, 12.2%)
CIE-LABlab(39.54, 46.76, -78.23)
CIE-LCHlch(39.54, 91.14, 300.87°)
OKLaboklab(49.82% 0.0106 -0.2262)
OKLCHoklch(49.82% 0.226 272.7)
XYZxyz(17.8176, 10.9765, 71.6862)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047E0 #E0D940
analogous
#4097E0 #4047E0 #8940E0
triadic
#4047E0 #E04047 #47E040
tetradic
#4047E0 #E04097 #E0D940 #40E089
square
#4047E0 #E04097 #E0D940 #40E089
split-complementary
#4047E0 #E08940 #97E040
monochromatic
#171C8E #2027C3 #4047E0 #757AE9 #A9ACF1

Accessibility & contrast

On white

6.57
#4047E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#4047E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4047E0
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4047E0#FFFFFF#000000##FFFFFF
##4047E01.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E5
Deuteranopia (green-blind)
#0056DD
Tritanopia (blue-blind)
#00718E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4047e0;
/* rgb */ color: rgb(64, 71, 224);
/* oklch */ color: oklch(49.8% 0.226 272.7);
Tailwind
colors: {
  custom: {
    50: '#8b7beb',
    500: '#4047e0',
    950: '#000000',
  },
}
SCSS
$custom: #4047e0;
$custom-light: #8b7beb;
$custom-dark: #000000;
JSON
{
  "hex": "#4047e0",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 224
  },
  "hsl": {
    "h": 237.375,
    "s": 72.072,
    "l": 56.471
  },
  "oklch": {
    "l": 0.49815,
    "c": 0.22648,
    "h": 272.7
  },
  "luminance": 0.10978
}

Semantic roles & 50–950 ramp

primary
#4047E0
secondary
#DFDC9D
accent
#E739EF
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4047E0

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

Preview Lab → · Contrast checker → · Palette generator →

#4047E0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva