#4039B5#4039B5

#4039B5 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.6% C 0.188 H 277.7°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#4039B5
RGBrgb(64, 57, 181)
HSLhsl(243, 52%, 47%)
HSVhsv(243, 69%, 71%)
CMYKcmyk(64.6%, 68.5%, 0%, 29%)
CIE-LABlab(32.59, 40.78, -64.64)
CIE-LCHlch(32.59, 76.43, 302.25°)
OKLaboklab(43.61% 0.0252 -0.1865)
OKLCHoklch(43.61% 0.188 277.7)
XYZxyz(11.9153, 7.3515, 44.4982)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4039B5 #AEB539
analogous
#3970B5 #4039B5 #7E39B5
triadic
#4039B5 #B54039 #39B540
tetradic
#4039B5 #B53970 #AEB539 #39B57E
square
#4039B5 #B53970 #AEB539 #39B57E
split-complementary
#4039B5 #B57E39 #70B539
monochromatic
#1F1C58 #302A86 #4039B5 #655FCD #928DDB

Accessibility & contrast

On white

8.50
#4039B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#4039B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4039B5
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4039B5#FFFFFF#000000##FFFFFF
##4039B51.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#005A72
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4039b5;
/* rgb */ color: rgb(64, 57, 181);
/* oklch */ color: oklch(43.6% 0.188 277.7);
Tailwind
colors: {
  custom: {
    50: '#8370cc',
    500: '#4039b5',
    950: '#000000',
  },
}
SCSS
$custom: #4039b5;
$custom-light: #8370cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4039b5",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 181
  },
  "hsl": {
    "h": 243.387,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.43612,
    "c": 0.18818,
    "h": 277.7
  },
  "luminance": 0.07352
}

Semantic roles & 50–950 ramp

primary
#4039B5
secondary
#C2C684
accent
#DC4CD3
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #4039B5

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

Preview Lab → · Contrast checker → · Palette generator →

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