#4047CC#4047CC

#4047CC is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.0% C 0.202 H 273.6°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#4047CC
RGBrgb(64, 71, 204)
HSLhsl(237, 58%, 53%)
HSVhsv(237, 69%, 80%)
CMYKcmyk(68.6%, 65.2%, 0%, 20%)
CIE-LABlab(37.76, 40.04, -69.65)
CIE-LCHlch(37.76, 80.34, 299.90°)
OKLaboklab(47.98% 0.0126 -0.2011)
OKLCHoklch(47.98% 0.202 273.6)
XYZxyz(15.2630, 9.9547, 58.2321)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047CC #CCC540
analogous
#408DCC #4047CC #7F40CC
triadic
#4047CC #CC4047 #47CC40
tetradic
#4047CC #CC408D #CCC540 #40CC7F
square
#4047CC #CC408D #CCC540 #40CC7F
split-complementary
#4047CC #CC7F40 #8DCC40
monochromatic
#1F2373 #2C32A3 #4047CC #7076D9 #A1A4E6

Accessibility & contrast

On white

7.02
#4047CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#4047CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4047CC
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4047CC#FFFFFF#000000##FFFFFF
##4047CC1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD0
Deuteranopia (green-blind)
#0052C9
Tritanopia (blue-blind)
#006A83
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4047cc;
/* rgb */ color: rgb(64, 71, 204);
/* oklch */ color: oklch(48.0% 0.202 273.6);
Tailwind
colors: {
  custom: {
    50: '#877add',
    500: '#4047cc',
    950: '#000000',
  },
}
SCSS
$custom: #4047cc;
$custom-light: #877add;
$custom-dark: #000000;
JSON
{
  "hex": "#4047cc",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 204
  },
  "hsl": {
    "h": 237,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.47981,
    "c": 0.20153,
    "h": 273.6
  },
  "luminance": 0.09956
}

Semantic roles & 50–950 ramp

primary
#4047CC
secondary
#D2CF95
accent
#D947E1
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4047CC

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

Preview Lab → · Contrast checker → · Palette generator →

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