#4039D9#4039D9

#4039D9 is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 47.1% C 0.232 H 274.7°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#4039D9
RGBrgb(64, 57, 217)
HSLhsl(243, 68%, 54%)
HSVhsv(243, 74%, 85%)
CMYKcmyk(70.5%, 73.7%, 0%, 14.9%)
CIE-LABlab(36.03, 52.37, -80.00)
CIE-LCHlch(36.03, 95.61, 303.21°)
OKLaboklab(47.1% 0.0191 -0.2313)
OKLCHoklch(47.1% 0.232 274.7)
XYZxyz(16.0977, 9.0244, 66.5257)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4039D9 #D2D939
analogous
#3982D9 #4039D9 #9039D9
triadic
#4039D9 #D94039 #39D940
tetradic
#4039D9 #D93982 #D2D939 #39D990
square
#4039D9 #D93982 #D2D939 #39D990
split-complementary
#4039D9 #D99039 #82D939
monochromatic
#1D187F #2922B3 #4039D9 #726CE3 #A3A0ED

Accessibility & contrast

On white

7.49
#4039D9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#4039D9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4039D9
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4039D9#FFFFFF#000000##FFFFFF
##4039D91.007.492.817.49
#FFFFFF7.491.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CDE
Deuteranopia (green-blind)
#004DD6
Tritanopia (blue-blind)
#006786
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4039d9;
/* rgb */ color: rgb(64, 57, 217);
/* oklch */ color: oklch(47.1% 0.232 274.7);
Tailwind
colors: {
  custom: {
    50: '#8b72e6',
    500: '#4039d9',
    950: '#000000',
  },
}
SCSS
$custom: #4039d9;
$custom-light: #8b72e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4039d9",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 217
  },
  "hsl": {
    "h": 242.625,
    "s": 67.797,
    "l": 53.725
  },
  "oklch": {
    "l": 0.47104,
    "c": 0.23214,
    "h": 274.7
  },
  "luminance": 0.09026
}

Semantic roles & 50–950 ramp

primary
#4039D9
secondary
#D6D995
accent
#EB3DE3
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4039D9

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

Preview Lab → · Contrast checker → · Palette generator →

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