#4059C7#4059C7

#4059C7 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.8% C 0.173 H 269.6°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#4059C7
RGBrgb(64, 89, 199)
HSLhsl(229, 55%, 52%)
HSVhsv(229, 68%, 78%)
CMYKcmyk(67.8%, 55.3%, 0%, 22%)
CIE-LABlab(41.78, 26.99, -60.21)
CIE-LCHlch(41.78, 65.98, 294.15°)
OKLaboklab(50.83% -0.0013 -0.1732)
OKLCHoklch(50.83% 0.173 269.6)
XYZxyz(15.9920, 12.3567, 55.5641)
Luminance0.1236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4059C7 #C7AE40
analogous
#409DC7 #4059C7 #6B40C7
triadic
#4059C7 #C74059 #59C740
tetradic
#4059C7 #C7409D #C7AE40 #40C76B
square
#4059C7 #C7409D #C7AE40 #40C76B
split-complementary
#4059C7 #C76B40 #9DC740
monochromatic
#202E6D #2E429C #4059C7 #6F82D5 #9FABE3

Accessibility & contrast

On white

6.05
#4059C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#4059C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4059C7
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4059C7#FFFFFF#000000##FFFFFF
##4059C71.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#005DC5
Tritanopia (blue-blind)
#007487
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4059c7;
/* rgb */ color: rgb(64, 89, 199);
/* oklch */ color: oklch(50.8% 0.173 269.6);
Tailwind
colors: {
  custom: {
    50: '#8487d9',
    500: '#4059c7',
    950: '#000000',
  },
}
SCSS
$custom: #4059c7;
$custom-light: #8487d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4059c7",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 199
  },
  "hsl": {
    "h": 228.889,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5083,
    "c": 0.17324,
    "h": 269.6
  },
  "luminance": 0.12358
}

Semantic roles & 50–950 ramp

primary
#4059C7
secondary
#CFC494
accent
#C34ADE
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4059C7

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

Preview Lab → · Contrast checker → · Palette generator →

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