#4039BB#4039BB

#4039BB is a dark, vivid blue. Relative luminance 0.076; OKLCH L 44.2% C 0.196 H 277.1°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#4039BB
RGBrgb(64, 57, 187)
HSLhsl(243, 53%, 48%)
HSVhsv(243, 70%, 73%)
CMYKcmyk(65.8%, 69.5%, 0%, 26.7%)
CIE-LABlab(33.14, 42.75, -67.29)
CIE-LCHlch(33.14, 79.72, 302.43°)
OKLaboklab(44.17% 0.0243 -0.1942)
OKLCHoklch(44.17% 0.196 277.1)
XYZxyz(12.5442, 7.6030, 47.8105)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4039BB #B4BB39
analogous
#3973BB #4039BB #8139BB
triadic
#4039BB #BB4039 #39BB40
tetradic
#4039BB #BB3973 #B4BB39 #39BB81
square
#4039BB #BB3973 #B4BB39 #39BB81
split-complementary
#4039BB #BB8139 #73BB39
monochromatic
#201C5D #302B8C #4039BB #6862CF #9591DD

Accessibility & contrast

On white

8.33
#4039BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#4039BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4039BB
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4039BB#FFFFFF#000000##FFFFFF
##4039BB1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BF
Deuteranopia (green-blind)
#0048B9
Tritanopia (blue-blind)
#005C76
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4039bb;
/* rgb */ color: rgb(64, 57, 187);
/* oklch */ color: oklch(44.2% 0.196 277.1);
Tailwind
colors: {
  custom: {
    50: '#8471d1',
    500: '#4039bb',
    950: '#000000',
  },
}
SCSS
$custom: #4039bb;
$custom-light: #8471d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4039bb",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 187
  },
  "hsl": {
    "h": 243.231,
    "s": 53.279,
    "l": 47.843
  },
  "oklch": {
    "l": 0.44174,
    "c": 0.19575,
    "h": 277.1
  },
  "luminance": 0.07604
}

Semantic roles & 50–950 ramp

primary
#4039BB
secondary
#C5C887
accent
#DD4BD5
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4039BB

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

Preview Lab → · Contrast checker → · Palette generator →

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