#4039BF#4039BF

#4039BF is a dark, highly saturated blue. Relative luminance 0.078; OKLCH L 44.6% C 0.201 H 276.8°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#4039BF
RGBrgb(64, 57, 191)
HSLhsl(243, 54%, 49%)
HSVhsv(243, 70%, 75%)
CMYKcmyk(66.5%, 70.2%, 0%, 25.1%)
CIE-LABlab(33.51, 44.05, -69.03)
CIE-LCHlch(33.51, 81.89, 302.54°)
OKLaboklab(44.55% 0.0237 -0.1993)
OKLCHoklch(44.55% 0.201 276.8)
XYZxyz(12.9784, 7.7767, 50.0972)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4039BF #B8BF39
analogous
#3975BF #4039BF #8339BF
triadic
#4039BF #BF4039 #39BF40
tetradic
#4039BF #BF3975 #B8BF39 #39BF83
square
#4039BF #BF3975 #B8BF39 #39BF83
split-complementary
#4039BF #BF8339 #75BF39
monochromatic
#201D61 #302B90 #4039BF #6A64D1 #9793DF

Accessibility & contrast

On white

8.22
#4039BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#4039BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4039BF
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4039BF#FFFFFF#000000##FFFFFF
##4039BF1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C3
Deuteranopia (green-blind)
#0049BD
Tritanopia (blue-blind)
#005E78
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4039bf;
/* rgb */ color: rgb(64, 57, 191);
/* oklch */ color: oklch(44.6% 0.201 276.8);
Tailwind
colors: {
  custom: {
    50: '#8571d3',
    500: '#4039bf',
    950: '#000000',
  },
}
SCSS
$custom: #4039bf;
$custom-light: #8571d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4039bf",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 191
  },
  "hsl": {
    "h": 243.134,
    "s": 54.032,
    "l": 48.627
  },
  "oklch": {
    "l": 0.44553,
    "c": 0.20075,
    "h": 276.8
  },
  "luminance": 0.07778
}

Semantic roles & 50–950 ramp

primary
#4039BF
secondary
#C7CA8A
accent
#DD4AD6
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4039BF

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

Preview Lab → · Contrast checker → · Palette generator →

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