#4037CC#4037CC

#4037CC is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.5% C 0.219 H 275.9°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#4037CC
RGBrgb(64, 55, 204)
HSLhsl(244, 59%, 51%)
HSVhsv(244, 73%, 80%)
CMYKcmyk(68.6%, 73%, 0%, 20%)
CIE-LABlab(34.36, 49.35, -75.25)
CIE-LCHlch(34.36, 89.98, 303.26°)
OKLaboklab(45.53% 0.0226 -0.2175)
OKLCHoklch(45.53% 0.219 275.9)
XYZxyz(14.3760, 8.1807, 57.9364)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4037CC #C3CC37
analogous
#3778CC #4037CC #8A37CC
triadic
#4037CC #CC4037 #37CC40
tetradic
#4037CC #CC3778 #C3CC37 #37CC8A
square
#4037CC #CC3778 #C3CC37 #37CC8A
split-complementary
#4037CC #CC8A37 #78CC37
monochromatic
#211C6D #2F289E #4037CC #6F68D8 #9D99E5

Accessibility & contrast

On white

7.97
#4037CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#4037CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4037CC
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4037CC#FFFFFF#000000##FFFFFF
##4037CC1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D0
Deuteranopia (green-blind)
#004AC9
Tritanopia (blue-blind)
#00617E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4037cc;
/* rgb */ color: rgb(64, 55, 204);
/* oklch */ color: oklch(45.5% 0.219 275.9);
Tailwind
colors: {
  custom: {
    50: '#8870dd',
    500: '#4037cc',
    950: '#000000',
  },
}
SCSS
$custom: #4037cc;
$custom-light: #8870dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4037cc",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 204
  },
  "hsl": {
    "h": 243.624,
    "s": 59.363,
    "l": 50.784
  },
  "oklch": {
    "l": 0.45531,
    "c": 0.21865,
    "h": 275.9
  },
  "luminance": 0.08182
}

Semantic roles & 50–950 ramp

primary
#4037CC
secondary
#CCD08E
accent
#E345D9
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4037CC

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

Preview Lab → · Contrast checker → · Palette generator →

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