#4047BB#4047BB

#4047BB is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.5% C 0.179 H 274.4°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#4047BB
RGBrgb(64, 71, 187)
HSLhsl(237, 49%, 49%)
HSVhsv(237, 66%, 73%)
CMYKcmyk(65.8%, 62%, 0%, 26.7%)
CIE-LABlab(36.33, 34.22, -62.06)
CIE-LCHlch(36.33, 70.87, 298.88°)
OKLaboklab(46.5% 0.0137 -0.1789)
OKLCHoklch(46.5% 0.179 274.4)
XYZxyz(13.3343, 9.1832, 48.0739)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047BB #BBB440
analogous
#4085BB #4047BB #7740BB
triadic
#4047BB #BB4047 #47BB40
tetradic
#4047BB #BB4085 #BBB440 #40BB77
square
#4047BB #BB4085 #BBB440 #40BB77
split-complementary
#4047BB #BB7740 #85BB40
monochromatic
#212460 #30368D #4047BB #6C71CD #999DDC

Accessibility & contrast

On white

7.40
#4047BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#4047BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4047BB
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4047BB#FFFFFF#000000##FFFFFF
##4047BB1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBF
Deuteranopia (green-blind)
#0050B9
Tritanopia (blue-blind)
#00647A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4047bb;
/* rgb */ color: rgb(64, 71, 187);
/* oklch */ color: oklch(46.5% 0.179 274.4);
Tailwind
colors: {
  custom: {
    50: '#837ad0',
    500: '#4047bb',
    950: '#000000',
  },
}
SCSS
$custom: #4047bb;
$custom-light: #837ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#4047bb",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 187
  },
  "hsl": {
    "h": 236.585,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46495,
    "c": 0.1794,
    "h": 274.4
  },
  "luminance": 0.09184
}

Semantic roles & 50–950 ramp

primary
#4047BB
secondary
#C8C58F
accent
#D14FD9
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0914
muted
#7D7B82

Preview Lab

Preview with #4047BB

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

Preview Lab → · Contrast checker → · Palette generator →

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