#4047BD#4047BD

#4047BD is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.7% C 0.182 H 274.3°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#4047BD
RGBrgb(64, 71, 189)
HSLhsl(237, 49%, 50%)
HSVhsv(237, 66%, 74%)
CMYKcmyk(66.1%, 62.4%, 0%, 25.9%)
CIE-LABlab(36.50, 34.91, -62.97)
CIE-LCHlch(36.50, 72.00, 299.01°)
OKLaboklab(46.67% 0.0136 -0.1815)
OKLCHoklch(46.67% 0.182 274.3)
XYZxyz(13.5499, 9.2694, 49.2094)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047BD #BDB640
analogous
#4086BD #4047BD #7840BD
triadic
#4047BD #BD4047 #47BD40
tetradic
#4047BD #BD4086 #BDB640 #40BD78
square
#4047BD #BD4086 #BDB640 #40BD78
split-complementary
#4047BD #BD7840 #86BD40
monochromatic
#212562 #31368F #4047BD #6D72CD #9A9EDD

Accessibility & contrast

On white

7.36
#4047BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#4047BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4047BD
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4047BD#FFFFFF#000000##FFFFFF
##4047BD1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC1
Deuteranopia (green-blind)
#0050BB
Tritanopia (blue-blind)
#00657B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4047bd;
/* rgb */ color: rgb(64, 71, 189);
/* oklch */ color: oklch(46.7% 0.182 274.3);
Tailwind
colors: {
  custom: {
    50: '#847ad2',
    500: '#4047bd',
    950: '#000000',
  },
}
SCSS
$custom: #4047bd;
$custom-light: #847ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#4047bd",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 189
  },
  "hsl": {
    "h": 236.64,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46666,
    "c": 0.18205,
    "h": 274.3
  },
  "luminance": 0.09271
}

Semantic roles & 50–950 ramp

primary
#4047BD
secondary
#C9C690
accent
#D14FD9
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #4047BD

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

Preview Lab → · Contrast checker → · Palette generator →

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