#4047AE#4047AE

#4047AE is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.4% C 0.162 H 275.0°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#4047AE
RGBrgb(64, 71, 174)
HSLhsl(236, 46%, 47%)
HSVhsv(236, 63%, 68%)
CMYKcmyk(63.2%, 59.2%, 0%, 31.8%)
CIE-LABlab(35.30, 29.73, -56.05)
CIE-LCHlch(35.30, 63.45, 297.94°)
OKLaboklab(45.41% 0.014 -0.1612)
OKLCHoklch(45.41% 0.162 275)
XYZxyz(12.0051, 8.6515, 41.0735)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047AE #AEA740
analogous
#407EAE #4047AE #7040AE
triadic
#4047AE #AE4047 #47AE40
tetradic
#4047AE #AE407E #AEA740 #40AE70
square
#4047AE #AE407E #AEA740 #40AE70
split-complementary
#4047AE #AE7040 #7EAE40
monochromatic
#1F2255 #303581 #4047AE #656BC6 #9296D7

Accessibility & contrast

On white

7.69
#4047AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#4047AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4047AE
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4047AE#FFFFFF#000000##FFFFFF
##4047AE1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B1
Deuteranopia (green-blind)
#004EAC
Tritanopia (blue-blind)
#006073
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4047ae;
/* rgb */ color: rgb(64, 71, 174);
/* oklch */ color: oklch(45.4% 0.162 275.0);
Tailwind
colors: {
  custom: {
    50: '#817ac7',
    500: '#4047ae',
    950: '#000000',
  },
}
SCSS
$custom: #4047ae;
$custom-light: #817ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#4047ae",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 174
  },
  "hsl": {
    "h": 236.182,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45412,
    "c": 0.16184,
    "h": 275
  },
  "luminance": 0.08652
}

Semantic roles & 50–950 ramp

primary
#4047AE
secondary
#C2BE88
accent
#CD52D6
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #4047AE

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

Preview Lab → · Contrast checker → · Palette generator →

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