#4058CC#4058CC

#4058CC is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.0% C 0.181 H 269.9°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#4058CC
RGBrgb(64, 88, 204)
HSLhsl(230, 58%, 53%)
HSVhsv(230, 69%, 80%)
CMYKcmyk(68.6%, 56.9%, 0%, 20%)
CIE-LABlab(41.89, 29.40, -62.92)
CIE-LCHlch(41.89, 69.45, 295.05°)
OKLaboklab(51.03% -0.0002 -0.1812)
OKLCHoklch(51.03% 0.181 269.9)
XYZxyz(16.4994, 12.4275, 58.6442)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058CC #CCB440
analogous
#409ECC #4058CC #6E40CC
triadic
#4058CC #CC4058 #58CC40
tetradic
#4058CC #CC409E #CCB440 #40CC6E
square
#4058CC #CC409E #CCB440 #40CC6E
split-complementary
#4058CC #CC6E40 #9ECC40
monochromatic
#1F2D73 #2C40A3 #4058CC #7082D9 #A1ACE6

Accessibility & contrast

On white

6.02
#4058CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#4058CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058CC
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058CC#FFFFFF#000000##FFFFFF
##4058CC1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#005DCA
Tritanopia (blue-blind)
#007489
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4058cc;
/* rgb */ color: rgb(64, 88, 204);
/* oklch */ color: oklch(51.0% 0.181 269.9);
Tailwind
colors: {
  custom: {
    50: '#8586dc',
    500: '#4058cc',
    950: '#000000',
  },
}
SCSS
$custom: #4058cc;
$custom-light: #8586dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4058cc",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 204
  },
  "hsl": {
    "h": 229.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.51028,
    "c": 0.18122,
    "h": 269.9
  },
  "luminance": 0.12429
}

Semantic roles & 50–950 ramp

primary
#4058CC
secondary
#D2C895
accent
#C747E1
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4058CC

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

Preview Lab → · Contrast checker → · Palette generator →

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