#4047B3#4047B3

#4047B3 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.8% C 0.169 H 274.7°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#4047B3
RGBrgb(64, 71, 179)
HSLhsl(236, 47%, 48%)
HSVhsv(236, 64%, 70%)
CMYKcmyk(64.2%, 60.3%, 0%, 29.8%)
CIE-LABlab(35.69, 31.46, -58.39)
CIE-LCHlch(35.69, 66.32, 298.32°)
OKLaboklab(45.82% 0.014 -0.1681)
OKLCHoklch(45.82% 0.169 274.7)
XYZxyz(12.5016, 8.8501, 43.6885)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047B3 #B3AC40
analogous
#4080B3 #4047B3 #7340B3
triadic
#4047B3 #B34047 #47B340
tetradic
#4047B3 #B34080 #B3AC40 #40B373
square
#4047B3 #B34080 #B3AC40 #40B373
split-complementary
#4047B3 #B37340 #80B340
monochromatic
#202359 #303586 #4047B3 #676DC9 #9499D9

Accessibility & contrast

On white

7.58
#4047B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#4047B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4047B3#FFFFFF#000000##FFFFFF
##4047B31.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B7
Deuteranopia (green-blind)
#004FB1
Tritanopia (blue-blind)
#006276
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4047b3;
/* rgb */ color: rgb(64, 71, 179);
/* oklch */ color: oklch(45.8% 0.169 274.7);
Tailwind
colors: {
  custom: {
    50: '#827acb',
    500: '#4047b3',
    950: '#000000',
  },
}
SCSS
$custom: #4047b3;
$custom-light: #827acb;
$custom-dark: #000000;
JSON
{
  "hex": "#4047b3",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 179
  },
  "hsl": {
    "h": 236.348,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45823,
    "c": 0.16866,
    "h": 274.7
  },
  "luminance": 0.08851
}

Semantic roles & 50–950 ramp

primary
#4047B3
secondary
#C4C18A
accent
#CF51D7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #4047B3

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

Preview Lab → · Contrast checker → · Palette generator →

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