#4039E0#4039E0

#4039E0 is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.8% C 0.240 H 274.2°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#4039E0
RGBrgb(64, 57, 224)
HSLhsl(243, 73%, 55%)
HSVhsv(243, 75%, 88%)
CMYKcmyk(71.4%, 74.6%, 0%, 12.2%)
CIE-LABlab(36.74, 54.55, -82.85)
CIE-LCHlch(36.74, 99.20, 303.36°)
OKLaboklab(47.81% 0.0177 -0.2396)
OKLCHoklch(47.81% 0.24 274.2)
XYZxyz(17.0276, 9.3964, 71.4229)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4039E0 #D9E039
analogous
#3985E0 #4039E0 #9439E0
triadic
#4039E0 #E04039 #39E040
tetradic
#4039E0 #E03985 #D9E039 #39E094
square
#4039E0 #E03985 #D9E039 #39E094
split-complementary
#4039E0 #E09439 #85E039
monochromatic
#1A1589 #241EBE #4039E0 #736EE8 #A6A3F1

Accessibility & contrast

On white

7.29
#4039E0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#4039E0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4039E0
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4039E0#FFFFFF#000000##FFFFFF
##4039E01.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EE5
Deuteranopia (green-blind)
#004FDD
Tritanopia (blue-blind)
#006A8A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4039e0;
/* rgb */ color: rgb(64, 57, 224);
/* oklch */ color: oklch(47.8% 0.240 274.2);
Tailwind
colors: {
  custom: {
    50: '#8c72eb',
    500: '#4039e0',
    950: '#000000',
  },
}
SCSS
$custom: #4039e0;
$custom-light: #8c72eb;
$custom-dark: #000000;
JSON
{
  "hex": "#4039e0",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 224
  },
  "hsl": {
    "h": 242.515,
    "s": 72.926,
    "l": 55.098
  },
  "oklch": {
    "l": 0.47812,
    "c": 0.24029,
    "h": 274.2
  },
  "luminance": 0.09398
}

Semantic roles & 50–950 ramp

primary
#4039E0
secondary
#DADD97
accent
#F038E8
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4039E0

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

Preview Lab → · Contrast checker → · Palette generator →

#4039E0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva