#4047AF#4047AF

#4047AF is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.5% C 0.163 H 274.9°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#4047AF
RGBrgb(64, 71, 175)
HSLhsl(236, 46%, 47%)
HSVhsv(236, 63%, 69%)
CMYKcmyk(63.4%, 59.4%, 0%, 31.4%)
CIE-LABlab(35.38, 30.08, -56.52)
CIE-LCHlch(35.38, 64.03, 298.02°)
OKLaboklab(45.49% 0.014 -0.1626)
OKLCHoklch(45.49% 0.163 274.9)
XYZxyz(12.1029, 8.6906, 41.5888)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047AF #AFA840
analogous
#407FAF #4047AF #7140AF
triadic
#4047AF #AF4047 #47AF40
tetradic
#4047AF #AF407F #AFA840 #40AF71
square
#4047AF #AF407F #AFA840 #40AF71
split-complementary
#4047AF #AF7140 #7FAF40
monochromatic
#1F2355 #303582 #4047AF #656CC7 #9297D7

Accessibility & contrast

On white

7.67
#4047AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#4047AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4047AF#FFFFFF#000000##FFFFFF
##4047AF1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B2
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#006074
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4047af;
/* rgb */ color: rgb(64, 71, 175);
/* oklch */ color: oklch(45.5% 0.163 274.9);
Tailwind
colors: {
  custom: {
    50: '#817ac8',
    500: '#4047af',
    950: '#000000',
  },
}
SCSS
$custom: #4047af;
$custom-light: #817ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#4047af",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 175
  },
  "hsl": {
    "h": 236.216,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45494,
    "c": 0.16321,
    "h": 274.9
  },
  "luminance": 0.08692
}

Semantic roles & 50–950 ramp

primary
#4047AF
secondary
#C3BF88
accent
#CE52D6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #4047AF

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

Preview Lab → · Contrast checker → · Palette generator →

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