#4039C5#4039C5

#4039C5 is a mid, highly saturated blue. Relative luminance 0.080; OKLCH L 45.1% C 0.208 H 276.3°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#4039C5
RGBrgb(64, 57, 197)
HSLhsl(243, 55%, 50%)
HSVhsv(243, 71%, 77%)
CMYKcmyk(67.5%, 71.1%, 0%, 22.7%)
CIE-LABlab(34.08, 46.00, -71.62)
CIE-LCHlch(34.08, 85.12, 302.71°)
OKLaboklab(45.13% 0.0227 -0.2069)
OKLCHoklch(45.13% 0.208 276.3)
XYZxyz(13.6522, 8.0462, 53.6461)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4039C5 #BEC539
analogous
#3978C5 #4039C5 #8639C5
triadic
#4039C5 #C54039 #39C540
tetradic
#4039C5 #C53978 #BEC539 #39C586
square
#4039C5 #C53978 #BEC539 #39C586
split-complementary
#4039C5 #C58639 #78C539
monochromatic
#211E66 #312B96 #4039C5 #6D68D3 #9B97E1

Accessibility & contrast

On white

8.05
#4039C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#4039C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4039C5
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4039C5#FFFFFF#000000##FFFFFF
##4039C51.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C9
Deuteranopia (green-blind)
#004AC2
Tritanopia (blue-blind)
#00607B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4039c5;
/* rgb */ color: rgb(64, 57, 197);
/* oklch */ color: oklch(45.1% 0.208 276.3);
Tailwind
colors: {
  custom: {
    50: '#8671d8',
    500: '#4039c5',
    950: '#000000',
  },
}
SCSS
$custom: #4039c5;
$custom-light: #8671d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4039c5",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 197
  },
  "hsl": {
    "h": 243,
    "s": 55.118,
    "l": 49.804
  },
  "oklch": {
    "l": 0.45129,
    "c": 0.20815,
    "h": 276.3
  },
  "luminance": 0.08047
}

Semantic roles & 50–950 ramp

primary
#4039C5
secondary
#C9CD8D
accent
#DE49D7
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4039C5

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

Preview Lab → · Contrast checker → · Palette generator →

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