#4047C4#4047C4

#4047C4 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.3% C 0.191 H 274.0°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#4047C4
RGBrgb(64, 71, 196)
HSLhsl(237, 53%, 51%)
HSVhsv(237, 67%, 77%)
CMYKcmyk(67.3%, 63.8%, 0%, 23.1%)
CIE-LABlab(37.08, 37.32, -66.11)
CIE-LCHlch(37.08, 75.92, 299.44°)
OKLaboklab(47.27% 0.0132 -0.1908)
OKLCHoklch(47.27% 0.191 274)
XYZxyz(14.3281, 9.5807, 53.3080)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047C4 #C4BD40
analogous
#4089C4 #4047C4 #7B40C4
triadic
#4047C4 #C44047 #47C440
tetradic
#4047C4 #C44089 #C4BD40 #40C47B
square
#4047C4 #C44089 #C4BD40 #40C47B
split-complementary
#4047C4 #C47B40 #89C440
monochromatic
#202469 #2F3498 #4047C4 #6F74D2 #9EA1E1

Accessibility & contrast

On white

7.20
#4047C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#4047C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4047C4#FFFFFF#000000##FFFFFF
##4047C41.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC8
Deuteranopia (green-blind)
#0051C2
Tritanopia (blue-blind)
#00677F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4047c4;
/* rgb */ color: rgb(64, 71, 196);
/* oklch */ color: oklch(47.3% 0.191 274.0);
Tailwind
colors: {
  custom: {
    50: '#857ad7',
    500: '#4047c4',
    950: '#000000',
  },
}
SCSS
$custom: #4047c4;
$custom-light: #857ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#4047c4",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 196
  },
  "hsl": {
    "h": 236.818,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.47272,
    "c": 0.19122,
    "h": 274
  },
  "luminance": 0.09582
}

Semantic roles & 50–950 ramp

primary
#4047C4
secondary
#CDCA93
accent
#D54CDC
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #4047C4

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

Preview Lab → · Contrast checker → · Palette generator →

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