#4039C6#4039C6

#4039C6 is a mid, highly saturated blue. Relative luminance 0.081; OKLCH L 45.2% C 0.209 H 276.2°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#4039C6
RGBrgb(64, 57, 198)
HSLhsl(243, 55%, 50%)
HSVhsv(243, 71%, 78%)
CMYKcmyk(67.7%, 71.2%, 0%, 22.4%)
CIE-LABlab(34.17, 46.32, -72.05)
CIE-LCHlch(34.17, 85.65, 302.74°)
OKLaboklab(45.23% 0.0225 -0.2082)
OKLCHoklch(45.23% 0.209 276.2)
XYZxyz(13.7672, 8.0922, 54.2516)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4039C6 #BFC639
analogous
#3978C6 #4039C6 #8739C6
triadic
#4039C6 #C64039 #39C640
tetradic
#4039C6 #C63978 #BFC639 #39C687
square
#4039C6 #C63978 #BFC639 #39C687
split-complementary
#4039C6 #C68739 #78C639
monochromatic
#211E67 #312B96 #4039C6 #6E69D4 #9C98E1

Accessibility & contrast

On white

8.02
#4039C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#4039C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4039C6
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4039C6#FFFFFF#000000##FFFFFF
##4039C61.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CA
Deuteranopia (green-blind)
#004AC3
Tritanopia (blue-blind)
#00607C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4039c6;
/* rgb */ color: rgb(64, 57, 198);
/* oklch */ color: oklch(45.2% 0.209 276.2);
Tailwind
colors: {
  custom: {
    50: '#8771d9',
    500: '#4039c6',
    950: '#000000',
  },
}
SCSS
$custom: #4039c6;
$custom-light: #8771d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4039c6",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 198
  },
  "hsl": {
    "h": 242.979,
    "s": 55.294,
    "l": 50
  },
  "oklch": {
    "l": 0.45226,
    "c": 0.20938,
    "h": 276.2
  },
  "luminance": 0.08093
}

Semantic roles & 50–950 ramp

primary
#4039C6
secondary
#CACD8E
accent
#DF49D7
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4039C6

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

Preview Lab → · Contrast checker → · Palette generator →

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