#4058C8#4058C8

#4058C8 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.7% C 0.176 H 269.9°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#4058C8
RGBrgb(64, 88, 200)
HSLhsl(229, 55%, 52%)
HSVhsv(229, 68%, 78%)
CMYKcmyk(68%, 56%, 0%, 21.6%)
CIE-LABlab(41.59, 27.98, -61.09)
CIE-LCHlch(41.59, 67.19, 294.61°)
OKLaboklab(50.71% -0.0004 -0.1758)
OKLCHoklch(50.71% 0.176 269.9)
XYZxyz(16.0258, 12.2380, 56.1500)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058C8 #C8B040
analogous
#409CC8 #4058C8 #6C40C8
triadic
#4058C8 #C84058 #58C840
tetradic
#4058C8 #C8409C #C8B040 #40C86C
square
#4058C8 #C8409C #C8B040 #40C86C
split-complementary
#4058C8 #C86C40 #9CC840
monochromatic
#202D6E #2D419D #4058C8 #7082D6 #9FABE3

Accessibility & contrast

On white

6.09
#4058C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#4058C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058C8
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058C8#FFFFFF#000000##FFFFFF
##4058C81.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CC
Deuteranopia (green-blind)
#005CC6
Tritanopia (blue-blind)
#007387
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4058c8;
/* rgb */ color: rgb(64, 88, 200);
/* oklch */ color: oklch(50.7% 0.176 269.9);
Tailwind
colors: {
  custom: {
    50: '#8586d9',
    500: '#4058c8',
    950: '#000000',
  },
}
SCSS
$custom: #4058c8;
$custom-light: #8586d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4058c8",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 200
  },
  "hsl": {
    "h": 229.412,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.50714,
    "c": 0.17584,
    "h": 269.9
  },
  "luminance": 0.1224
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4058C8

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

Preview Lab → · Contrast checker → · Palette generator →

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