#4037C7#4037C7

#4037C7 is a mid, highly saturated blue. Relative luminance 0.079; OKLCH L 45.0% C 0.213 H 276.4°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#4037C7
RGBrgb(64, 55, 199)
HSLhsl(244, 57%, 50%)
HSVhsv(244, 72%, 78%)
CMYKcmyk(67.8%, 72.4%, 0%, 22%)
CIE-LABlab(33.87, 47.76, -73.14)
CIE-LCHlch(33.87, 87.35, 303.15°)
OKLaboklab(45.04% 0.0236 -0.2113)
OKLCHoklch(45.04% 0.213 276.4)
XYZxyz(13.7860, 7.9446, 54.8287)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4037C7 #BEC737
analogous
#3776C7 #4037C7 #8837C7
triadic
#4037C7 #C74037 #37C740
tetradic
#4037C7 #C73776 #BEC737 #37C788
square
#4037C7 #C73776 #BEC737 #37C788
split-complementary
#4037C7 #C78837 #76C737
monochromatic
#211C67 #312A97 #4037C7 #6D66D5 #9B96E2

Accessibility & contrast

On white

8.11
#4037C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#4037C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4037C7
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4037C7#FFFFFF#000000##FFFFFF
##4037C71.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CB
Deuteranopia (green-blind)
#0049C4
Tritanopia (blue-blind)
#00607C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4037c7;
/* rgb */ color: rgb(64, 55, 199);
/* oklch */ color: oklch(45.0% 0.213 276.4);
Tailwind
colors: {
  custom: {
    50: '#8770d9',
    500: '#4037c7',
    950: '#000000',
  },
}
SCSS
$custom: #4037c7;
$custom-light: #8770d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4037c7",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 199
  },
  "hsl": {
    "h": 243.75,
    "s": 56.693,
    "l": 49.804
  },
  "oklch": {
    "l": 0.45036,
    "c": 0.21264,
    "h": 276.4
  },
  "luminance": 0.07946
}

Semantic roles & 50–950 ramp

primary
#4037C7
secondary
#C9CD8C
accent
#E048D6
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #4037C7

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

Preview Lab → · Contrast checker → · Palette generator →

#4037C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva