#4039CC#4039CC

#4039CC is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 45.8% C 0.217 H 275.7°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#4039CC
RGBrgb(64, 57, 204)
HSLhsl(243, 59%, 51%)
HSVhsv(243, 72%, 80%)
CMYKcmyk(68.6%, 72.1%, 0%, 20%)
CIE-LABlab(34.75, 48.25, -74.60)
CIE-LCHlch(34.75, 88.84, 302.89°)
OKLaboklab(45.81% 0.0215 -0.2156)
OKLCHoklch(45.81% 0.217 275.7)
XYZxyz(14.4730, 8.3745, 57.9688)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4039CC #C5CC39
analogous
#397BCC #4039CC #8939CC
triadic
#4039CC #CC4039 #39CC40
tetradic
#4039CC #CC397B #C5CC39 #39CC89
square
#4039CC #CC397B #C5CC39 #39CC89
split-complementary
#4039CC #CC8939 #7BCC39
monochromatic
#201C6E #2F299F #4039CC #6F6AD9 #9E9AE5

Accessibility & contrast

On white

7.85
#4039CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#4039CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4039CC
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4039CC#FFFFFF#000000##FFFFFF
##4039CC1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D0
Deuteranopia (green-blind)
#004BC9
Tritanopia (blue-blind)
#00627F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4039cc;
/* rgb */ color: rgb(64, 57, 204);
/* oklch */ color: oklch(45.8% 0.217 275.7);
Tailwind
colors: {
  custom: {
    50: '#8871dd',
    500: '#4039cc',
    950: '#000000',
  },
}
SCSS
$custom: #4039cc;
$custom-light: #8871dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4039cc",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 204
  },
  "hsl": {
    "h": 242.857,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.45811,
    "c": 0.21666,
    "h": 275.7
  },
  "luminance": 0.08376
}

Semantic roles & 50–950 ramp

primary
#4039CC
secondary
#CED190
accent
#E246DB
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4039CC

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

Preview Lab → · Contrast checker → · Palette generator →

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