#4059CE#4059CE

#4059CE is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.4% C 0.183 H 269.7°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#4059CE
RGBrgb(64, 89, 206)
HSLhsl(229, 59%, 53%)
HSVhsv(229, 69%, 81%)
CMYKcmyk(68.9%, 56.8%, 0%, 19.2%)
CIE-LABlab(42.29, 29.48, -63.41)
CIE-LCHlch(42.29, 69.93, 294.93°)
OKLaboklab(51.38% -0.001 -0.1827)
OKLCHoklch(51.38% 0.183 269.7)
XYZxyz(16.8235, 12.6893, 59.9432)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4059CE #CEB540
analogous
#40A0CE #4059CE #6E40CE
triadic
#4059CE #CE4059 #59CE40
tetradic
#4059CE #CE40A0 #CEB540 #40CE6E
square
#4059CE #CE40A0 #CEB540 #40CE6E
split-complementary
#4059CE #CE6E40 #A0CE40
monochromatic
#1E2E75 #2B40A6 #4059CE #7183DA #A1AEE7

Accessibility & contrast

On white

5.94
#4059CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#4059CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4059CE
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4059CE#FFFFFF#000000##FFFFFF
##4059CE1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD2
Deuteranopia (green-blind)
#005ECC
Tritanopia (blue-blind)
#00768B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4059ce;
/* rgb */ color: rgb(64, 89, 206);
/* oklch */ color: oklch(51.4% 0.183 269.7);
Tailwind
colors: {
  custom: {
    50: '#8687de',
    500: '#4059ce',
    950: '#000000',
  },
}
SCSS
$custom: #4059ce;
$custom-light: #8687de;
$custom-dark: #000000;
JSON
{
  "hex": "#4059ce",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 206
  },
  "hsl": {
    "h": 229.437,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.51377,
    "c": 0.18267,
    "h": 269.7
  },
  "luminance": 0.12691
}

Semantic roles & 50–950 ramp

primary
#4059CE
secondary
#D4C996
accent
#C745E2
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4059CE

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

Preview Lab → · Contrast checker → · Palette generator →

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