#4037CB#4037CB

#4037CB is a mid, highly saturated blue. Relative luminance 0.081; OKLCH L 45.4% C 0.217 H 276.0°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#4037CB
RGBrgb(64, 55, 203)
HSLhsl(244, 59%, 51%)
HSVhsv(244, 73%, 80%)
CMYKcmyk(68.5%, 72.9%, 0%, 20.4%)
CIE-LABlab(34.26, 49.03, -74.83)
CIE-LCHlch(34.26, 89.46, 303.24°)
OKLaboklab(45.43% 0.0228 -0.2162)
OKLCHoklch(45.43% 0.217 276)
XYZxyz(14.2565, 8.1329, 57.3068)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4037CB #C2CB37
analogous
#3778CB #4037CB #8A37CB
triadic
#4037CB #CB4037 #37CB40
tetradic
#4037CB #CB3778 #C2CB37 #37CB8A
square
#4037CB #CB3778 #C2CB37 #37CB8A
split-complementary
#4037CB #CB8A37 #78CB37
monochromatic
#211C6C #30299C #4037CB #6E68D8 #9D98E4

Accessibility & contrast

On white

7.99
#4037CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#4037CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4037CB
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4037CB#FFFFFF#000000##FFFFFF
##4037CB1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4037cb;
/* rgb */ color: rgb(64, 55, 203);
/* oklch */ color: oklch(45.4% 0.217 276.0);
Tailwind
colors: {
  custom: {
    50: '#8870dc',
    500: '#4037cb',
    950: '#000000',
  },
}
SCSS
$custom: #4037cb;
$custom-light: #8870dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4037cb",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 203
  },
  "hsl": {
    "h": 243.649,
    "s": 58.73,
    "l": 50.588
  },
  "oklch": {
    "l": 0.45431,
    "c": 0.21745,
    "h": 276
  },
  "luminance": 0.08134
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4037CB

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

Preview Lab → · Contrast checker → · Palette generator →

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