#4059CD#4059CD

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

Color values

HEX#4059CD
RGBrgb(64, 89, 205)
HSLhsl(229, 59%, 53%)
HSVhsv(229, 69%, 80%)
CMYKcmyk(68.8%, 56.6%, 0%, 19.6%)
CIE-LABlab(42.22, 29.12, -62.96)
CIE-LCHlch(42.22, 69.37, 294.82°)
OKLaboklab(51.3% -0.001 -0.1813)
OKLCHoklch(51.3% 0.181 269.7)
XYZxyz(16.7024, 12.6409, 59.3055)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4059CD #CDB440
analogous
#409FCD #4059CD #6E40CD
triadic
#4059CD #CD4059 #59CD40
tetradic
#4059CD #CD409F #CDB440 #40CD6E
square
#4059CD #CD409F #CDB440 #40CD6E
split-complementary
#4059CD #CD6E40 #9FCD40
monochromatic
#1E2E74 #2B41A5 #4059CD #7183DA #A1ADE6

Accessibility & contrast

On white

5.95
#4059CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#4059CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4059CD
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4059CD#FFFFFF#000000##FFFFFF
##4059CD1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#005DCB
Tritanopia (blue-blind)
#00758A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4059cd;
/* rgb */ color: rgb(64, 89, 205);
/* oklch */ color: oklch(51.3% 0.181 269.7);
Tailwind
colors: {
  custom: {
    50: '#8687dd',
    500: '#4059cd',
    950: '#000000',
  },
}
SCSS
$custom: #4059cd;
$custom-light: #8687dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4059cd",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 205
  },
  "hsl": {
    "h": 229.362,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.51298,
    "c": 0.18133,
    "h": 269.7
  },
  "luminance": 0.12643
}

Semantic roles & 50–950 ramp

primary
#4059CD
secondary
#D3C896
accent
#C646E2
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4059CD

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

Preview Lab → · Contrast checker → · Palette generator →

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