#4039B1#4039B1

#4039B1 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.2% C 0.183 H 278.1°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#4039B1
RGBrgb(64, 57, 177)
HSLhsl(244, 51%, 46%)
HSVhsv(244, 68%, 69%)
CMYKcmyk(63.8%, 67.8%, 0%, 30.6%)
CIE-LABlab(32.23, 39.47, -62.85)
CIE-LCHlch(32.23, 74.21, 302.13°)
OKLaboklab(43.24% 0.0257 -0.1812)
OKLCHoklch(43.24% 0.183 278.1)
XYZxyz(11.5107, 7.1896, 42.3676)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4039B1 #AAB139
analogous
#396EB1 #4039B1 #7C39B1
triadic
#4039B1 #B14039 #39B140
tetradic
#4039B1 #B1396E #AAB139 #39B17C
square
#4039B1 #B1396E #AAB139 #39B17C
split-complementary
#4039B1 #B17C39 #6EB139
monochromatic
#1F1B54 #2F2A83 #4039B1 #635DCB #8F8BDA

Accessibility & contrast

On white

8.61
#4039B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#4039B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4039B1
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4039B1#FFFFFF#000000##FFFFFF
##4039B11.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B5
Deuteranopia (green-blind)
#0047AF
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4039b1;
/* rgb */ color: rgb(64, 57, 177);
/* oklch */ color: oklch(43.2% 0.183 278.1);
Tailwind
colors: {
  custom: {
    50: '#8270c9',
    500: '#4039b1',
    950: '#000000',
  },
}
SCSS
$custom: #4039b1;
$custom-light: #8270c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4039b1",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 177
  },
  "hsl": {
    "h": 243.5,
    "s": 51.282,
    "l": 45.882
  },
  "oklch": {
    "l": 0.43243,
    "c": 0.18307,
    "h": 278.1
  },
  "luminance": 0.07191
}

Semantic roles & 50–950 ramp

primary
#4039B1
secondary
#C0C482
accent
#DB4DD2
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4039B1

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

Preview Lab → · Contrast checker → · Palette generator →

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