#4047D9#4047D9

#4047D9 is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 49.2% C 0.218 H 273.0°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#4047D9
RGBrgb(64, 71, 217)
HSLhsl(237, 67%, 55%)
HSVhsv(237, 71%, 85%)
CMYKcmyk(70.5%, 67.3%, 0%, 14.9%)
CIE-LABlab(38.91, 44.43, -75.27)
CIE-LCHlch(38.91, 87.40, 300.55°)
OKLaboklab(49.16% 0.0113 -0.2176)
OKLCHoklch(49.16% 0.218 273)
XYZxyz(16.8878, 10.6046, 66.7891)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047D9 #D9D240
analogous
#4093D9 #4047D9 #8640D9
triadic
#4047D9 #D94047 #47D940
tetradic
#4047D9 #D94093 #D9D240 #40D986
square
#4047D9 #D94093 #D9D240 #40D986
split-complementary
#4047D9 #D98640 #93D940
monochromatic
#1A1F84 #242BB7 #4047D9 #7378E3 #A6A9ED

Accessibility & contrast

On white

6.73
#4047D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#4047D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4047D9
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4047D9#FFFFFF#000000##FFFFFF
##4047D91.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DD
Deuteranopia (green-blind)
#0054D6
Tritanopia (blue-blind)
#006E8A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4047d9;
/* rgb */ color: rgb(64, 71, 217);
/* oklch */ color: oklch(49.2% 0.218 273.0);
Tailwind
colors: {
  custom: {
    50: '#897be6',
    500: '#4047d9',
    950: '#000000',
  },
}
SCSS
$custom: #4047d9;
$custom-light: #897be6;
$custom-dark: #000000;
JSON
{
  "hex": "#4047d9",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 217
  },
  "hsl": {
    "h": 237.255,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.49163,
    "c": 0.21787,
    "h": 273
  },
  "luminance": 0.10606
}

Semantic roles & 50–950 ramp

primary
#4047D9
secondary
#DAD89A
accent
#E23EEA
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #4047D9

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

Preview Lab → · Contrast checker → · Palette generator →

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