#4037DA#4037DA

#4037DA is a mid, highly saturated blue. Relative luminance 0.089; OKLCH L 46.9% C 0.235 H 274.8°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#4037DA
RGBrgb(64, 55, 218)
HSLhsl(243, 69%, 54%)
HSVhsv(243, 75%, 85%)
CMYKcmyk(70.6%, 74.8%, 0%, 14.5%)
CIE-LABlab(35.76, 53.74, -81.03)
CIE-LCHlch(35.76, 97.23, 303.55°)
OKLaboklab(46.94% 0.0199 -0.2343)
OKLCHoklch(46.94% 0.235 274.8)
XYZxyz(16.1312, 8.8828, 67.1805)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4037DA #D1DA37
analogous
#377FDA #4037DA #9137DA
triadic
#4037DA #DA4037 #37DA40
tetradic
#4037DA #DA377F #D1DA37 #37DA91
square
#4037DA #DA377F #D1DA37 #37DA91
split-complementary
#4037DA #DA9137 #7FDA37
monochromatic
#1D187F #2921B3 #4037DA #716BE4 #A39EED

Accessibility & contrast

On white

7.56
#4037DA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#4037DA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4037DA
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4037DA#FFFFFF#000000##FFFFFF
##4037DA1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BDF
Deuteranopia (green-blind)
#004DD7
Tritanopia (blue-blind)
#006786
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4037da;
/* rgb */ color: rgb(64, 55, 218);
/* oklch */ color: oklch(46.9% 0.235 274.8);
Tailwind
colors: {
  custom: {
    50: '#8b71e7',
    500: '#4037da',
    950: '#000000',
  },
}
SCSS
$custom: #4037da;
$custom-light: #8b71e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4037da",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 218
  },
  "hsl": {
    "h": 243.313,
    "s": 68.776,
    "l": 53.529
  },
  "oklch": {
    "l": 0.4694,
    "c": 0.23516,
    "h": 274.8
  },
  "luminance": 0.08884
}

Semantic roles & 50–950 ramp

primary
#4037DA
secondary
#D5D993
accent
#EC3CE2
background
#F9F6FE
surface
#F2ECFD
border
#CCC7D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4037DA

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

Preview Lab → · Contrast checker → · Palette generator →

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