#4047D1#4047D1

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

Color values

HEX#4047D1
RGBrgb(64, 71, 209)
HSLhsl(237, 61%, 54%)
HSVhsv(237, 69%, 82%)
CMYKcmyk(69.4%, 66%, 0%, 18%)
CIE-LABlab(38.20, 41.74, -71.83)
CIE-LCHlch(38.20, 83.07, 300.16°)
OKLaboklab(48.43% 0.0121 -0.2075)
OKLCHoklch(48.43% 0.208 273.3)
XYZxyz(15.8724, 10.1984, 61.4412)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047D1 #D1CA40
analogous
#4090D1 #4047D1 #8140D1
triadic
#4047D1 #D14047 #47D140
tetradic
#4047D1 #D14090 #D1CA40 #40D181
square
#4047D1 #D14090 #D1CA40 #40D181
split-complementary
#4047D1 #D18140 #90D140
monochromatic
#1D2279 #292FAB #4047D1 #7177DD #A3A6E9

Accessibility & contrast

On white

6.91
#4047D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#4047D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4047D1
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4047D1#FFFFFF#000000##FFFFFF
##4047D11.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4047d1;
/* rgb */ color: rgb(64, 71, 209);
/* oklch */ color: oklch(48.4% 0.208 273.3);
Tailwind
colors: {
  custom: {
    50: '#887be0',
    500: '#4047d1',
    950: '#000000',
  },
}
SCSS
$custom: #4047d1;
$custom-light: #887be0;
$custom-dark: #000000;
JSON
{
  "hex": "#4047d1",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 209
  },
  "hsl": {
    "h": 237.103,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48431,
    "c": 0.20787,
    "h": 273.3
  },
  "luminance": 0.102
}

Semantic roles & 50–950 ramp

primary
#4047D1
secondary
#D5D297
accent
#DD44E4
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4047D1

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

Preview Lab → · Contrast checker → · Palette generator →

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