#4047D2#4047D2

#4047D2 is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.5% C 0.209 H 273.3°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#4047D2
RGBrgb(64, 71, 210)
HSLhsl(237, 62%, 54%)
HSVhsv(237, 70%, 82%)
CMYKcmyk(69.5%, 66.2%, 0%, 17.6%)
CIE-LABlab(38.28, 42.07, -72.26)
CIE-LCHlch(38.28, 83.62, 300.21°)
OKLaboklab(48.52% 0.0121 -0.2088)
OKLCHoklch(48.52% 0.209 273.3)
XYZxyz(15.9966, 10.2481, 62.0953)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047D2 #D2CB40
analogous
#4090D2 #4047D2 #8240D2
triadic
#4047D2 #D24047 #47D240
tetradic
#4047D2 #D24090 #D2CB40 #40D282
square
#4047D2 #D24090 #D2CB40 #40D282
split-complementary
#4047D2 #D28240 #90D240
monochromatic
#1D217B #292FAC #4047D2 #7277DE #A3A6E9

Accessibility & contrast

On white

6.89
#4047D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#4047D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4047D2
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4047D2#FFFFFF#000000##FFFFFF
##4047D21.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D6
Deuteranopia (green-blind)
#0053CF
Tritanopia (blue-blind)
#006C86
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4047d2;
/* rgb */ color: rgb(64, 71, 210);
/* oklch */ color: oklch(48.5% 0.209 273.3);
Tailwind
colors: {
  custom: {
    50: '#887be1',
    500: '#4047d2',
    950: '#000000',
  },
}
SCSS
$custom: #4047d2;
$custom-light: #887be1;
$custom-dark: #000000;
JSON
{
  "hex": "#4047d2",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 210
  },
  "hsl": {
    "h": 237.123,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.48522,
    "c": 0.20913,
    "h": 273.3
  },
  "luminance": 0.1025
}

Semantic roles & 50–950 ramp

primary
#4047D2
secondary
#D6D398
accent
#DD43E5
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4047D2

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

Preview Lab → · Contrast checker → · Palette generator →

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