#4047AA#4047AA

#4047AA is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.1% C 0.156 H 275.1°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#4047AA
RGBrgb(64, 71, 170)
HSLhsl(236, 45%, 46%)
HSVhsv(236, 62%, 67%)
CMYKcmyk(62.4%, 58.2%, 0%, 33.3%)
CIE-LABlab(35.00, 28.34, -54.17)
CIE-LCHlch(35.00, 61.13, 297.62°)
OKLaboklab(45.09% 0.014 -0.1557)
OKLCHoklch(45.09% 0.156 275.1)
XYZxyz(11.6209, 8.4978, 39.0503)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047AA #AAA340
analogous
#407CAA #4047AA #6E40AA
triadic
#4047AA #AA4047 #47AA40
tetradic
#4047AA #AA407C #AAA340 #40AA6E
square
#4047AA #AA407C #AAA340 #40AA6E
split-complementary
#4047AA #AA6E40 #7CAA40
monochromatic
#1F2251 #2F347E #4047AA #6369C4 #8F94D5

Accessibility & contrast

On white

7.78
#4047AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#4047AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4047AA#FFFFFF#000000##FFFFFF
##4047AA1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AD
Deuteranopia (green-blind)
#004EA8
Tritanopia (blue-blind)
#005F71
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4047aa;
/* rgb */ color: rgb(64, 71, 170);
/* oklch */ color: oklch(45.1% 0.156 275.1);
Tailwind
colors: {
  custom: {
    50: '#807ac4',
    500: '#4047aa',
    950: '#000000',
  },
}
SCSS
$custom: #4047aa;
$custom-light: #807ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#4047aa",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 170
  },
  "hsl": {
    "h": 236.038,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45089,
    "c": 0.15631,
    "h": 275.1
  },
  "luminance": 0.08499
}

Semantic roles & 50–950 ramp

primary
#4047AA
secondary
#C0BC86
accent
#CC53D5
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #4047AA

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

Preview Lab → · Contrast checker → · Palette generator →

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