#4047D8#4047D8

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

Color values

HEX#4047D8
RGBrgb(64, 71, 216)
HSLhsl(237, 66%, 55%)
HSVhsv(237, 70%, 85%)
CMYKcmyk(70.4%, 67.1%, 0%, 15.3%)
CIE-LABlab(38.82, 44.09, -74.84)
CIE-LCHlch(38.82, 86.86, 300.50°)
OKLaboklab(49.07% 0.0115 -0.2163)
OKLCHoklch(49.07% 0.217 273)
XYZxyz(16.7581, 10.5527, 66.1061)
Luminance0.1055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047D8 #D8D140
analogous
#4093D8 #4047D8 #8540D8
triadic
#4047D8 #D84047 #47D840
tetradic
#4047D8 #D84093 #D8D140 #40D885
square
#4047D8 #D84093 #D8D140 #40D885
split-complementary
#4047D8 #D88540 #93D840
monochromatic
#1B2083 #252CB6 #4047D8 #7378E2 #A6A9ED

Accessibility & contrast

On white

6.75
#4047D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#4047D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4047D8
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4047D8#FFFFFF#000000##FFFFFF
##4047D81.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DC
Deuteranopia (green-blind)
#0054D5
Tritanopia (blue-blind)
#006E8A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4047d8;
/* rgb */ color: rgb(64, 71, 216);
/* oklch */ color: oklch(49.1% 0.217 273.0);
Tailwind
colors: {
  custom: {
    50: '#897be5',
    500: '#4047d8',
    950: '#000000',
  },
}
SCSS
$custom: #4047d8;
$custom-light: #897be5;
$custom-dark: #000000;
JSON
{
  "hex": "#4047d8",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 216
  },
  "hsl": {
    "h": 237.237,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.49071,
    "c": 0.21663,
    "h": 273
  },
  "luminance": 0.10554
}

Semantic roles & 50–950 ramp

primary
#4047D8
secondary
#DAD79A
accent
#E13FE9
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #4047D8

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

Preview Lab → · Contrast checker → · Palette generator →

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