#4059BD#4059BD

#4059BD is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.1% C 0.160 H 269.3°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#4059BD
RGBrgb(64, 89, 189)
HSLhsl(228, 49%, 50%)
HSVhsv(228, 66%, 74%)
CMYKcmyk(66.1%, 52.9%, 0%, 25.9%)
CIE-LABlab(41.07, 23.43, -55.54)
CIE-LCHlch(41.07, 60.28, 292.87°)
OKLaboklab(50.07% -0.0019 -0.1595)
OKLCHoklch(50.07% 0.16 269.3)
XYZxyz(14.8689, 11.9075, 49.6490)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4059BD #BDA440
analogous
#4098BD #4059BD #6640BD
triadic
#4059BD #BD4059 #59BD40
tetradic
#4059BD #BD4098 #BDA440 #40BD66
square
#4059BD #BD4098 #BDA440 #40BD66
split-complementary
#4059BD #BD6640 #98BD40
monochromatic
#212E62 #31438F #4059BD #6D80CD #9AA8DD

Accessibility & contrast

On white

6.21
#4059BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#4059BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4059BD
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4059BD#FFFFFF#000000##FFFFFF
##4059BD1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1767C1
Deuteranopia (green-blind)
#005BBB
Tritanopia (blue-blind)
#007182
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4059bd;
/* rgb */ color: rgb(64, 89, 189);
/* oklch */ color: oklch(50.1% 0.160 269.3);
Tailwind
colors: {
  custom: {
    50: '#8287d2',
    500: '#4059bd',
    950: '#000000',
  },
}
SCSS
$custom: #4059bd;
$custom-light: #8287d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4059bd",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 189
  },
  "hsl": {
    "h": 228,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50072,
    "c": 0.15953,
    "h": 269.3
  },
  "luminance": 0.11909
}

Semantic roles & 50–950 ramp

primary
#4059BD
secondary
#C9BE90
accent
#BD4FD9
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #4059BD

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

Preview Lab → · Contrast checker → · Palette generator →

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