#4047C6#4047C6

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

Color values

HEX#4047C6
RGBrgb(64, 71, 198)
HSLhsl(237, 54%, 51%)
HSVhsv(237, 68%, 78%)
CMYKcmyk(67.7%, 64.1%, 0%, 22.4%)
CIE-LABlab(37.25, 38.00, -67.00)
CIE-LCHlch(37.25, 77.03, 299.56°)
OKLaboklab(47.45% 0.0131 -0.1934)
OKLCHoklch(47.45% 0.194 273.9)
XYZxyz(14.5572, 9.6723, 54.5149)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047C6 #C6BF40
analogous
#408AC6 #4047C6 #7C40C6
triadic
#4047C6 #C64047 #47C640
tetradic
#4047C6 #C6408A #C6BF40 #40C67C
square
#4047C6 #C6408A #C6BF40 #40C67C
split-complementary
#4047C6 #C67C40 #8AC640
monochromatic
#20246C #2E349B #4047C6 #6F74D4 #9EA2E2

Accessibility & contrast

On white

7.16
#4047C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##4047C6#FFFFFF#000000##FFFFFF
##4047C61.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECA
Deuteranopia (green-blind)
#0052C4
Tritanopia (blue-blind)
#006880
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4047c6;
/* rgb */ color: rgb(64, 71, 198);
/* oklch */ color: oklch(47.4% 0.194 273.9);
Tailwind
colors: {
  custom: {
    50: '#857ad8',
    500: '#4047c6',
    950: '#000000',
  },
}
SCSS
$custom: #4047c6;
$custom-light: #857ad8;
$custom-dark: #000000;
JSON
{
  "hex": "#4047c6",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 198
  },
  "hsl": {
    "h": 236.866,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.47448,
    "c": 0.19382,
    "h": 273.9
  },
  "luminance": 0.09674
}

Semantic roles & 50–950 ramp

primary
#4047C6
secondary
#CECB93
accent
#D64ADD
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #4047C6

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

Preview Lab → · Contrast checker → · Palette generator →

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