#4039C8#4039C8

#4039C8 is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.4% C 0.212 H 276.0°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#4039C8
RGBrgb(64, 57, 200)
HSLhsl(243, 57%, 50%)
HSVhsv(243, 72%, 78%)
CMYKcmyk(68%, 71.5%, 0%, 21.6%)
CIE-LABlab(34.37, 46.96, -72.90)
CIE-LCHlch(34.37, 86.72, 302.79°)
OKLaboklab(45.42% 0.0222 -0.2106)
OKLCHoklch(45.42% 0.212 276)
XYZxyz(13.9994, 8.1851, 55.4745)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4039C8 #C1C839
analogous
#3979C8 #4039C8 #8739C8
triadic
#4039C8 #C84039 #39C840
tetradic
#4039C8 #C83979 #C1C839 #39C887
square
#4039C8 #C83979 #C1C839 #39C887
split-complementary
#4039C8 #C88739 #79C839
monochromatic
#211D69 #302B99 #4039C8 #6E69D5 #9C99E3

Accessibility & contrast

On white

7.96
#4039C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#4039C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4039C8
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4039C8#FFFFFF#000000##FFFFFF
##4039C81.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CC
Deuteranopia (green-blind)
#004AC5
Tritanopia (blue-blind)
#00617D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4039c8;
/* rgb */ color: rgb(64, 57, 200);
/* oklch */ color: oklch(45.4% 0.212 276.0);
Tailwind
colors: {
  custom: {
    50: '#8771da',
    500: '#4039c8',
    950: '#000000',
  },
}
SCSS
$custom: #4039c8;
$custom-light: #8771da;
$custom-dark: #000000;
JSON
{
  "hex": "#4039c8",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 200
  },
  "hsl": {
    "h": 242.937,
    "s": 56.522,
    "l": 50.392
  },
  "oklch": {
    "l": 0.4542,
    "c": 0.21182,
    "h": 276
  },
  "luminance": 0.08186
}

Semantic roles & 50–950 ramp

primary
#4039C8
secondary
#CBCE8F
accent
#E048D8
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4039C8

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

Preview Lab → · Contrast checker → · Palette generator →

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