#4047C5#4047C5

#4047C5 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.4% C 0.193 H 273.9°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#4047C5
RGBrgb(64, 71, 197)
HSLhsl(237, 53%, 51%)
HSVhsv(237, 68%, 77%)
CMYKcmyk(67.5%, 64%, 0%, 22.7%)
CIE-LABlab(37.16, 37.66, -66.56)
CIE-LCHlch(37.16, 76.47, 299.50°)
OKLaboklab(47.36% 0.0131 -0.1921)
OKLCHoklch(47.36% 0.193 273.9)
XYZxyz(14.4423, 9.6264, 53.9095)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047C5 #C5BE40
analogous
#4089C5 #4047C5 #7B40C5
triadic
#4047C5 #C54047 #47C540
tetradic
#4047C5 #C54089 #C5BE40 #40C57B
square
#4047C5 #C54089 #C5BE40 #40C57B
split-complementary
#4047C5 #C57B40 #89C540
monochromatic
#20246A #2F3499 #4047C5 #6F74D3 #9EA1E2

Accessibility & contrast

On white

7.18
#4047C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#4047C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4047C5#FFFFFF#000000##FFFFFF
##4047C51.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC9
Deuteranopia (green-blind)
#0051C3
Tritanopia (blue-blind)
#00687F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4047c5;
/* rgb */ color: rgb(64, 71, 197);
/* oklch */ color: oklch(47.4% 0.193 273.9);
Tailwind
colors: {
  custom: {
    50: '#857ad8',
    500: '#4047c5',
    950: '#000000',
  },
}
SCSS
$custom: #4047c5;
$custom-light: #857ad8;
$custom-dark: #000000;
JSON
{
  "hex": "#4047c5",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 197
  },
  "hsl": {
    "h": 236.842,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.4736,
    "c": 0.19253,
    "h": 273.9
  },
  "luminance": 0.09628
}

Semantic roles & 50–950 ramp

primary
#4047C5
secondary
#CECB93
accent
#D54BDD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #4047C5

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

Preview Lab → · Contrast checker → · Palette generator →

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