#4047D3#4047D3

#4047D3 is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 48.6% C 0.210 H 273.3°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#4047D3
RGBrgb(64, 71, 211)
HSLhsl(237, 63%, 54%)
HSVhsv(237, 70%, 83%)
CMYKcmyk(69.7%, 66.4%, 0%, 17.3%)
CIE-LABlab(38.37, 42.41, -72.69)
CIE-LCHlch(38.37, 84.16, 300.26°)
OKLaboklab(48.61% 0.012 -0.21)
OKLCHoklch(48.61% 0.21 273.3)
XYZxyz(16.1215, 10.2981, 62.7535)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047D3 #D3CC40
analogous
#4091D3 #4047D3 #8340D3
triadic
#4047D3 #D34047 #47D340
tetradic
#4047D3 #D34091 #D3CC40 #40D383
square
#4047D3 #D34091 #D3CC40 #40D383
split-complementary
#4047D3 #D38340 #91D340
monochromatic
#1D217C #282EAE #4047D3 #7277DE #A3A7EA

Accessibility & contrast

On white

6.86
#4047D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#4047D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4047D3
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4047D3#FFFFFF#000000##FFFFFF
##4047D31.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D7
Deuteranopia (green-blind)
#0054D0
Tritanopia (blue-blind)
#006C87
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4047d3;
/* rgb */ color: rgb(64, 71, 211);
/* oklch */ color: oklch(48.6% 0.210 273.3);
Tailwind
colors: {
  custom: {
    50: '#887be2',
    500: '#4047d3',
    950: '#000000',
  },
}
SCSS
$custom: #4047d3;
$custom-light: #887be2;
$custom-dark: #000000;
JSON
{
  "hex": "#4047d3",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 211
  },
  "hsl": {
    "h": 237.143,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.48613,
    "c": 0.21039,
    "h": 273.3
  },
  "luminance": 0.103
}

Semantic roles & 50–950 ramp

primary
#4047D3
secondary
#D7D498
accent
#DE42E6
background
#F9F7FE
surface
#F1EEFC
border
#CBC9D5
text
#0D0915
muted
#7E7B84

Preview Lab

Preview with #4047D3

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

Preview Lab → · Contrast checker → · Palette generator →

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