#4059D7#4059D7

#4059D7 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 52.1% C 0.195 H 269.8°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#4059D7
RGBrgb(64, 89, 215)
HSLhsl(230, 65%, 55%)
HSVhsv(230, 70%, 84%)
CMYKcmyk(70.2%, 58.6%, 0%, 15.7%)
CIE-LABlab(42.97, 32.67, -67.47)
CIE-LCHlch(42.97, 74.96, 295.83°)
OKLaboklab(52.1% -0.0008 -0.1946)
OKLCHoklch(52.1% 0.195 269.8)
XYZxyz(17.9483, 13.1392, 65.8670)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4059D7 #D7BE40
analogous
#40A5D7 #4059D7 #7240D7
triadic
#4059D7 #D74059 #59D740
tetradic
#4059D7 #D740A5 #D7BE40 #40D772
square
#4059D7 #D740A5 #D7BE40 #40D772
split-complementary
#4059D7 #D77240 #A5D740
monochromatic
#1B2C81 #263DB4 #4059D7 #7385E2 #A5B1EC

Accessibility & contrast

On white

5.79
#4059D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#4059D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4059D7
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4059D7#FFFFFF#000000##FFFFFF
##4059D71.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDB
Deuteranopia (green-blind)
#005FD5
Tritanopia (blue-blind)
#00788F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4059d7;
/* rgb */ color: rgb(64, 89, 215);
/* oklch */ color: oklch(52.1% 0.195 269.8);
Tailwind
colors: {
  custom: {
    50: '#8887e4',
    500: '#4059d7',
    950: '#000000',
  },
}
SCSS
$custom: #4059d7;
$custom-light: #8887e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4059d7",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 215
  },
  "hsl": {
    "h": 230.066,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.52099,
    "c": 0.19459,
    "h": 269.8
  },
  "luminance": 0.13141
}

Semantic roles & 50–950 ramp

primary
#4059D7
secondary
#D9CF9A
accent
#CC3FE8
background
#F9F8FE
surface
#F1EFFC
border
#CBCAD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #4059D7

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

Preview Lab → · Contrast checker → · Palette generator →

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