#4059CB#4059CB

#4059CB is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.1% C 0.179 H 269.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#4059CB
RGBrgb(64, 89, 203)
HSLhsl(229, 57%, 52%)
HSVhsv(229, 68%, 80%)
CMYKcmyk(68.5%, 56.2%, 0%, 20.4%)
CIE-LABlab(42.07, 28.41, -62.05)
CIE-LCHlch(42.07, 68.24, 294.60°)
OKLaboklab(51.14% -0.0011 -0.1786)
OKLCHoklch(51.14% 0.179 269.6)
XYZxyz(16.4625, 12.5449, 58.0422)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4059CB #CBB240
analogous
#409ECB #4059CB #6D40CB
triadic
#4059CB #CB4059 #59CB40
tetradic
#4059CB #CB409E #CBB240 #40CB6D
square
#4059CB #CB409E #CBB240 #40CB6D
split-complementary
#4059CB #CB6D40 #9ECB40
monochromatic
#1F2E72 #2C41A2 #4059CB #7083D8 #A0ADE5

Accessibility & contrast

On white

5.98
#4059CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#4059CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4059CB
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4059CB#FFFFFF#000000##FFFFFF
##4059CB1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#005DC9
Tritanopia (blue-blind)
#007589
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4059cb;
/* rgb */ color: rgb(64, 89, 203);
/* oklch */ color: oklch(51.1% 0.179 269.6);
Tailwind
colors: {
  custom: {
    50: '#8587dc',
    500: '#4059cb',
    950: '#000000',
  },
}
SCSS
$custom: #4059cb;
$custom-light: #8587dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4059cb",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 203
  },
  "hsl": {
    "h": 229.209,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.51141,
    "c": 0.17864,
    "h": 269.6
  },
  "luminance": 0.12547
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4059CB

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

Preview Lab → · Contrast checker → · Palette generator →

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