#4059BF#4059BF

#4059BF is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.2% C 0.162 H 269.4°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#4059BF
RGBrgb(64, 89, 191)
HSLhsl(228, 50%, 50%)
HSVhsv(228, 66%, 75%)
CMYKcmyk(66.5%, 53.4%, 0%, 25.1%)
CIE-LABlab(41.21, 24.14, -56.48)
CIE-LCHlch(41.21, 61.43, 293.14°)
OKLaboklab(50.22% -0.0018 -0.1623)
OKLCHoklch(50.22% 0.162 269.4)
XYZxyz(15.0875, 11.9949, 50.8003)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4059BF #BFA640
analogous
#4098BF #4059BF #6740BF
triadic
#4059BF #BF4059 #59BF40
tetradic
#4059BF #BF4098 #BFA640 #40BF67
square
#4059BF #BF4098 #BFA640 #40BF67
split-complementary
#4059BF #BF6740 #98BF40
monochromatic
#212E63 #314491 #4059BF #6E81CE #9CA9DE

Accessibility & contrast

On white

6.18
#4059BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#4059BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4059BF
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4059BF#FFFFFF#000000##FFFFFF
##4059BF1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1267C3
Deuteranopia (green-blind)
#005CBD
Tritanopia (blue-blind)
#007183
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4059bf;
/* rgb */ color: rgb(64, 89, 191);
/* oklch */ color: oklch(50.2% 0.162 269.4);
Tailwind
colors: {
  custom: {
    50: '#8387d3',
    500: '#4059bf',
    950: '#000000',
  },
}
SCSS
$custom: #4059bf;
$custom-light: #8387d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4059bf",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 191
  },
  "hsl": {
    "h": 228.189,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.50221,
    "c": 0.1623,
    "h": 269.4
  },
  "luminance": 0.11996
}

Semantic roles & 50–950 ramp

primary
#4059BF
secondary
#CABF91
accent
#BE4ED9
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4059BF

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

Preview Lab → · Contrast checker → · Palette generator →

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