#4039B2#4039B2

#4039B2 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.3% C 0.184 H 278.0°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#4039B2
RGBrgb(64, 57, 178)
HSLhsl(243, 51%, 46%)
HSVhsv(243, 68%, 70%)
CMYKcmyk(64%, 68%, 0%, 30.2%)
CIE-LABlab(32.32, 39.80, -63.30)
CIE-LCHlch(32.32, 74.77, 302.16°)
OKLaboklab(43.34% 0.0256 -0.1826)
OKLCHoklch(43.34% 0.184 278)
XYZxyz(11.6108, 7.2297, 42.8945)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4039B2 #ABB239
analogous
#396EB2 #4039B2 #7C39B2
triadic
#4039B2 #B24039 #39B240
tetradic
#4039B2 #B2396E #ABB239 #39B27C
square
#4039B2 #B2396E #ABB239 #39B27C
split-complementary
#4039B2 #B27C39 #6EB239
monochromatic
#1F1B55 #2F2A84 #4039B2 #635DCB #908BDA

Accessibility & contrast

On white

8.58
#4039B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#4039B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4039B2
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4039B2#FFFFFF#000000##FFFFFF
##4039B21.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#005971
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4039b2;
/* rgb */ color: rgb(64, 57, 178);
/* oklch */ color: oklch(43.3% 0.184 278.0);
Tailwind
colors: {
  custom: {
    50: '#8370ca',
    500: '#4039b2',
    950: '#000000',
  },
}
SCSS
$custom: #4039b2;
$custom-light: #8370ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4039b2",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 243.471,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.43335,
    "c": 0.18434,
    "h": 278
  },
  "luminance": 0.07231
}

Semantic roles & 50–950 ramp

primary
#4039B2
secondary
#C1C482
accent
#DB4DD3
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4039B2

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

Preview Lab → · Contrast checker → · Palette generator →

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