#4039B7#4039B7

#4039B7 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.8% C 0.191 H 277.5°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#4039B7
RGBrgb(64, 57, 183)
HSLhsl(243, 53%, 47%)
HSVhsv(243, 69%, 72%)
CMYKcmyk(65%, 68.9%, 0%, 28.2%)
CIE-LABlab(32.78, 41.44, -65.52)
CIE-LCHlch(32.78, 77.53, 302.31°)
OKLaboklab(43.8% 0.0249 -0.1891)
OKLCHoklch(43.8% 0.191 277.5)
XYZxyz(12.1220, 7.4341, 45.5867)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4039B7 #B0B739
analogous
#3971B7 #4039B7 #7F39B7
triadic
#4039B7 #B74039 #39B740
tetradic
#4039B7 #B73971 #B0B739 #39B77F
square
#4039B7 #B73971 #B0B739 #39B77F
split-complementary
#4039B7 #B77F39 #71B739
monochromatic
#1F1C5A #302A88 #4039B7 #6660CD #938EDC

Accessibility & contrast

On white

8.44
#4039B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#4039B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4039B7
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4039B7#FFFFFF#000000##FFFFFF
##4039B71.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BB
Deuteranopia (green-blind)
#0048B5
Tritanopia (blue-blind)
#005B73
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4039b7;
/* rgb */ color: rgb(64, 57, 183);
/* oklch */ color: oklch(43.8% 0.191 277.5);
Tailwind
colors: {
  custom: {
    50: '#8470ce',
    500: '#4039b7',
    950: '#000000',
  },
}
SCSS
$custom: #4039b7;
$custom-light: #8470ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4039b7",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 183
  },
  "hsl": {
    "h": 243.333,
    "s": 52.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.43798,
    "c": 0.19072,
    "h": 277.5
  },
  "luminance": 0.07435
}

Semantic roles & 50–950 ramp

primary
#4039B7
secondary
#C3C785
accent
#DC4CD4
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #4039B7

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

Preview Lab → · Contrast checker → · Palette generator →

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