#4047BF#4047BF

#4047BF is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.8% C 0.185 H 274.2°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#4047BF
RGBrgb(64, 71, 191)
HSLhsl(237, 50%, 50%)
HSVhsv(237, 66%, 75%)
CMYKcmyk(66.5%, 62.8%, 0%, 25.1%)
CIE-LABlab(36.66, 35.60, -63.87)
CIE-LCHlch(36.66, 73.12, 299.13°)
OKLaboklab(46.84% 0.0135 -0.1842)
OKLCHoklch(46.84% 0.185 274.2)
XYZxyz(13.7684, 9.3568, 50.3606)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047BF #BFB840
analogous
#4086BF #4047BF #7940BF
triadic
#4047BF #BF4047 #47BF40
tetradic
#4047BF #BF4086 #BFB840 #40BF79
square
#4047BF #BF4086 #BFB840 #40BF79
split-complementary
#4047BF #BF7940 #86BF40
monochromatic
#212563 #313691 #4047BF #6E73CE #9C9FDE

Accessibility & contrast

On white

7.31
#4047BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#4047BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4047BF
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4047BF#FFFFFF#000000##FFFFFF
##4047BF1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC3
Deuteranopia (green-blind)
#0051BD
Tritanopia (blue-blind)
#00667C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4047bf;
/* rgb */ color: rgb(64, 71, 191);
/* oklch */ color: oklch(46.8% 0.185 274.2);
Tailwind
colors: {
  custom: {
    50: '#847ad3',
    500: '#4047bf',
    950: '#000000',
  },
}
SCSS
$custom: #4047bf;
$custom-light: #847ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#4047bf",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 191
  },
  "hsl": {
    "h": 236.693,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.46838,
    "c": 0.18469,
    "h": 274.2
  },
  "luminance": 0.09358
}

Semantic roles & 50–950 ramp

primary
#4047BF
secondary
#CAC791
accent
#D24ED9
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #4047BF

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

Preview Lab → · Contrast checker → · Palette generator →

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