#4047DD#4047DD

#4047DD is a mid, highly saturated blue. Relative luminance 0.108; OKLCH L 49.5% C 0.223 H 272.8°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#4047DD
RGBrgb(64, 71, 221)
HSLhsl(237, 70%, 56%)
HSVhsv(237, 71%, 87%)
CMYKcmyk(71%, 67.9%, 0%, 13.3%)
CIE-LABlab(39.27, 45.76, -76.96)
CIE-LCHlch(39.27, 89.54, 300.74°)
OKLaboklab(49.53% 0.0109 -0.2225)
OKLCHoklch(49.53% 0.223 272.8)
XYZxyz(17.4144, 10.8152, 69.5624)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047DD #DDD640
analogous
#4095DD #4047DD #8740DD
triadic
#4047DD #DD4047 #47DD40
tetradic
#4047DD #DD4095 #DDD640 #40DD87
square
#4047DD #DD4095 #DDD640 #40DD87
split-complementary
#4047DD #DD8740 #95DD40
monochromatic
#191E8A #2229BE #4047DD #7479E6 #A8ABEF

Accessibility & contrast

On white

6.64
#4047DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#4047DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4047DD
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4047DD#FFFFFF#000000##FFFFFF
##4047DD1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E2
Deuteranopia (green-blind)
#0055DA
Tritanopia (blue-blind)
#00708C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4047dd;
/* rgb */ color: rgb(64, 71, 221);
/* oklch */ color: oklch(49.5% 0.223 272.8);
Tailwind
colors: {
  custom: {
    50: '#8a7be9',
    500: '#4047dd',
    950: '#000000',
  },
}
SCSS
$custom: #4047dd;
$custom-light: #8a7be9;
$custom-dark: #000000;
JSON
{
  "hex": "#4047dd",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 221
  },
  "hsl": {
    "h": 237.325,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.49534,
    "c": 0.2228,
    "h": 272.8
  },
  "luminance": 0.10817
}

Semantic roles & 50–950 ramp

primary
#4047DD
secondary
#DDDA9C
accent
#E53BED
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4047DD

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

Preview Lab → · Contrast checker → · Palette generator →

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