#4047D7#4047D7

#4047D7 is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.0% C 0.215 H 273.1°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#4047D7
RGBrgb(64, 71, 215)
HSLhsl(237, 65%, 55%)
HSVhsv(237, 70%, 84%)
CMYKcmyk(70.2%, 67%, 0%, 15.7%)
CIE-LABlab(38.73, 43.76, -74.41)
CIE-LCHlch(38.73, 86.32, 300.46°)
OKLaboklab(48.98% 0.0116 -0.2151)
OKLCHoklch(48.98% 0.215 273.1)
XYZxyz(16.6292, 10.5011, 65.4274)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047D7 #D7D040
analogous
#4092D7 #4047D7 #8540D7
triadic
#4047D7 #D74047 #47D740
tetradic
#4047D7 #D74092 #D7D040 #40D785
square
#4047D7 #D74092 #D7D040 #40D785
split-complementary
#4047D7 #D78540 #92D740
monochromatic
#1B2081 #262CB4 #4047D7 #7378E2 #A5A8EC

Accessibility & contrast

On white

6.77
#4047D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#4047D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4047D7
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4047D7#FFFFFF#000000##FFFFFF
##4047D71.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DB
Deuteranopia (green-blind)
#0054D4
Tritanopia (blue-blind)
#006E89
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4047d7;
/* rgb */ color: rgb(64, 71, 215);
/* oklch */ color: oklch(49.0% 0.215 273.1);
Tailwind
colors: {
  custom: {
    50: '#897be5',
    500: '#4047d7',
    950: '#000000',
  },
}
SCSS
$custom: #4047d7;
$custom-light: #897be5;
$custom-dark: #000000;
JSON
{
  "hex": "#4047d7",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 215
  },
  "hsl": {
    "h": 237.219,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.48979,
    "c": 0.21539,
    "h": 273.1
  },
  "luminance": 0.10503
}

Semantic roles & 50–950 ramp

primary
#4047D7
secondary
#D9D69A
accent
#E13FE8
background
#F9F7FE
surface
#F1EEFC
border
#CBC9D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #4047D7

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

Preview Lab → · Contrast checker → · Palette generator →

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