#4059C8#4059C8

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

Color values

HEX#4059C8
RGBrgb(64, 89, 200)
HSLhsl(229, 55%, 52%)
HSVhsv(229, 68%, 78%)
CMYKcmyk(68%, 55.5%, 0%, 21.6%)
CIE-LABlab(41.85, 27.35, -60.67)
CIE-LCHlch(41.85, 66.55, 294.26°)
OKLaboklab(50.91% -0.0012 -0.1746)
OKLCHoklch(50.91% 0.175 269.6)
XYZxyz(16.1085, 12.4033, 56.1775)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4059C8 #C8AF40
analogous
#409DC8 #4059C8 #6B40C8
triadic
#4059C8 #C84059 #59C840
tetradic
#4059C8 #C8409D #C8AF40 #40C86B
square
#4059C8 #C8409D #C8AF40 #40C86B
split-complementary
#4059C8 #C86B40 #9DC840
monochromatic
#202E6E #2D429D #4059C8 #7082D6 #9FACE3

Accessibility & contrast

On white

6.03
#4059C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#4059C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4059C8
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4059C8#FFFFFF#000000##FFFFFF
##4059C81.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CC
Deuteranopia (green-blind)
#005DC6
Tritanopia (blue-blind)
#007488
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4059c8;
/* rgb */ color: rgb(64, 89, 200);
/* oklch */ color: oklch(50.9% 0.175 269.6);
Tailwind
colors: {
  custom: {
    50: '#8587d9',
    500: '#4059c8',
    950: '#000000',
  },
}
SCSS
$custom: #4059c8;
$custom-light: #8587d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4059c8",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 200
  },
  "hsl": {
    "h": 228.971,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.50908,
    "c": 0.17459,
    "h": 269.6
  },
  "luminance": 0.12405
}

Semantic roles & 50–950 ramp

primary
#4059C8
secondary
#D0C594
accent
#C349DF
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4059C8

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

Preview Lab → · Contrast checker → · Palette generator →

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