#4039CE#4039CE

#4039CE is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 46.0% C 0.219 H 275.5°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#4039CE
RGBrgb(64, 57, 206)
HSLhsl(243, 60%, 52%)
HSVhsv(243, 72%, 81%)
CMYKcmyk(68.9%, 72.3%, 0%, 19.2%)
CIE-LABlab(34.95, 48.88, -75.44)
CIE-LCHlch(34.95, 89.89, 302.94°)
OKLaboklab(46.01% 0.0211 -0.218)
OKLCHoklch(46.01% 0.219 275.5)
XYZxyz(14.7144, 8.4711, 59.2402)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4039CE #C7CE39
analogous
#397DCE #4039CE #8B39CE
triadic
#4039CE #CE4039 #39CE40
tetradic
#4039CE #CE397D #C7CE39 #39CE8B
square
#4039CE #CE397D #C7CE39 #39CE8B
split-complementary
#4039CE #CE8B39 #7DCE39
monochromatic
#201C71 #2E28A2 #4039CE #6F6ADA #9F9BE6

Accessibility & contrast

On white

7.79
#4039CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#4039CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4039CE
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4039CE#FFFFFF#000000##FFFFFF
##4039CE1.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D2
Deuteranopia (green-blind)
#004BCB
Tritanopia (blue-blind)
#006380
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4039ce;
/* rgb */ color: rgb(64, 57, 206);
/* oklch */ color: oklch(46.0% 0.219 275.5);
Tailwind
colors: {
  custom: {
    50: '#8871de',
    500: '#4039ce',
    950: '#000000',
  },
}
SCSS
$custom: #4039ce;
$custom-light: #8871de;
$custom-dark: #000000;
JSON
{
  "hex": "#4039ce",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 206
  },
  "hsl": {
    "h": 242.819,
    "s": 60.324,
    "l": 51.569
  },
  "oklch": {
    "l": 0.46008,
    "c": 0.21907,
    "h": 275.5
  },
  "luminance": 0.08472
}

Semantic roles & 50–950 ramp

primary
#4039CE
secondary
#CFD291
accent
#E344DC
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4039CE

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

Preview Lab → · Contrast checker → · Palette generator →

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