#4039BD#4039BD

#4039BD is a dark, vivid blue. Relative luminance 0.077; OKLCH L 44.4% C 0.198 H 277.0°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#4039BD
RGBrgb(64, 57, 189)
HSLhsl(243, 54%, 48%)
HSVhsv(243, 70%, 74%)
CMYKcmyk(66.1%, 69.8%, 0%, 25.9%)
CIE-LABlab(33.33, 43.40, -68.16)
CIE-LCHlch(33.33, 80.81, 302.49°)
OKLaboklab(44.36% 0.024 -0.1968)
OKLCHoklch(44.36% 0.198 277)
XYZxyz(12.7598, 7.6893, 48.9460)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4039BD #B6BD39
analogous
#3974BD #4039BD #8239BD
triadic
#4039BD #BD4039 #39BD40
tetradic
#4039BD #BD3974 #B6BD39 #39BD82
square
#4039BD #BD3974 #B6BD39 #39BD82
split-complementary
#4039BD #BD8239 #74BD39
monochromatic
#201D5F #302B8E #4039BD #6963D0 #9692DE

Accessibility & contrast

On white

8.27
#4039BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#4039BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4039BD
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4039BD#FFFFFF#000000##FFFFFF
##4039BD1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C1
Deuteranopia (green-blind)
#0049BB
Tritanopia (blue-blind)
#005D77
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4039bd;
/* rgb */ color: rgb(64, 57, 189);
/* oklch */ color: oklch(44.4% 0.198 277.0);
Tailwind
colors: {
  custom: {
    50: '#8571d2',
    500: '#4039bd',
    950: '#000000',
  },
}
SCSS
$custom: #4039bd;
$custom-light: #8571d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4039bd",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 189
  },
  "hsl": {
    "h": 243.182,
    "s": 53.659,
    "l": 48.235
  },
  "oklch": {
    "l": 0.44363,
    "c": 0.19826,
    "h": 277
  },
  "luminance": 0.0769
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4039BD

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

Preview Lab → · Contrast checker → · Palette generator →

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