#4037EA#4037EA

#4037EA is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.6% C 0.253 H 273.7°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#4037EA
RGBrgb(64, 55, 234)
HSLhsl(243, 81%, 57%)
HSVhsv(243, 76%, 92%)
CMYKcmyk(72.6%, 76.5%, 0%, 8.2%)
CIE-LABlab(37.41, 58.64, -87.44)
CIE-LCHlch(37.41, 105.28, 303.85°)
OKLaboklab(48.59% 0.0165 -0.2529)
OKLCHoklch(48.59% 0.253 273.7)
XYZxyz(18.3269, 9.7610, 78.7442)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4037EA #E1EA37
analogous
#3788EA #4037EA #9A37EA
triadic
#4037EA #EA4037 #37EA40
tetradic
#4037EA #EA3788 #E1EA37 #37EA9A
square
#4037EA #EA3788 #E1EA37 #37EA9A
split-complementary
#4037EA #EA9A37 #88EA37
monochromatic
#171097 #1F16CE #4037EA #756EF0 #AAA6F6

Accessibility & contrast

On white

7.11
#4037EA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#4037EA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4037EA
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4037EA#FFFFFF#000000##FFFFFF
##4037EA1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060EF
Deuteranopia (green-blind)
#004FE7
Tritanopia (blue-blind)
#006D8F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4037ea;
/* rgb */ color: rgb(64, 55, 234);
/* oklch */ color: oklch(48.6% 0.253 273.7);
Tailwind
colors: {
  custom: {
    50: '#8e71f2',
    500: '#4037ea',
    950: '#000000',
  },
}
SCSS
$custom: #4037ea;
$custom-light: #8e71f2;
$custom-dark: #000000;
JSON
{
  "hex": "#4037ea",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 234
  },
  "hsl": {
    "h": 243.017,
    "s": 80.995,
    "l": 56.667
  },
  "oklch": {
    "l": 0.48591,
    "c": 0.25349,
    "h": 273.7
  },
  "luminance": 0.09763
}

Semantic roles & 50–950 ramp

primary
#4037EA
secondary
#DFE39A
accent
#F730ED
background
#F9F7FF
surface
#F2EDFE
border
#CCC8D6
text
#0F0817
muted
#7E7B85

Preview Lab

Preview with #4037EA

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

Preview Lab → · Contrast checker → · Palette generator →

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