#4059CC#4059CC

#4059CC is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.2% C 0.180 H 269.7°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#4059CC
RGBrgb(64, 89, 204)
HSLhsl(229, 58%, 53%)
HSVhsv(229, 69%, 80%)
CMYKcmyk(68.6%, 56.4%, 0%, 20%)
CIE-LABlab(42.14, 28.77, -62.50)
CIE-LCHlch(42.14, 68.81, 294.72°)
OKLaboklab(51.22% -0.0011 -0.18)
OKLCHoklch(51.22% 0.18 269.7)
XYZxyz(16.5821, 12.5928, 58.6718)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4059CC #CCB340
analogous
#409FCC #4059CC #6D40CC
triadic
#4059CC #CC4059 #59CC40
tetradic
#4059CC #CC409F #CCB340 #40CC6D
square
#4059CC #CC409F #CCB340 #40CC6D
split-complementary
#4059CC #CC6D40 #9FCC40
monochromatic
#1F2E73 #2C41A3 #4059CC #7083D9 #A1ADE6

Accessibility & contrast

On white

5.97
#4059CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#4059CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4059CC
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4059CC#FFFFFF#000000##FFFFFF
##4059CC1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#005DCA
Tritanopia (blue-blind)
#00758A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4059cc;
/* rgb */ color: rgb(64, 89, 204);
/* oklch */ color: oklch(51.2% 0.180 269.7);
Tailwind
colors: {
  custom: {
    50: '#8587dc',
    500: '#4059cc',
    950: '#000000',
  },
}
SCSS
$custom: #4059cc;
$custom-light: #8587dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4059cc",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 204
  },
  "hsl": {
    "h": 229.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.5122,
    "c": 0.17999,
    "h": 269.7
  },
  "luminance": 0.12594
}

Semantic roles & 50–950 ramp

primary
#4059CC
secondary
#D2C795
accent
#C647E1
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4059CC

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

Preview Lab → · Contrast checker → · Palette generator →

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