#4058C4#4058C4

#4058C4 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.4% C 0.170 H 269.8°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#4058C4
RGBrgb(64, 88, 196)
HSLhsl(229, 53%, 51%)
HSVhsv(229, 67%, 77%)
CMYKcmyk(67.3%, 55.1%, 0%, 23.1%)
CIE-LABlab(41.30, 26.56, -59.24)
CIE-LCHlch(41.30, 64.92, 294.15°)
OKLaboklab(50.4% -0.0006 -0.1704)
OKLCHoklch(50.4% 0.17 269.8)
XYZxyz(15.5645, 12.0535, 53.7202)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058C4 #C4AC40
analogous
#409AC4 #4058C4 #6A40C4
triadic
#4058C4 #C44058 #58C440
tetradic
#4058C4 #C4409A #C4AC40 #40C46A
square
#4058C4 #C4409A #C4AC40 #40C46A
split-complementary
#4058C4 #C46A40 #9AC440
monochromatic
#202E69 #2F4298 #4058C4 #6F81D2 #9EAAE1

Accessibility & contrast

On white

6.16
#4058C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#4058C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058C4
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058C4#FFFFFF#000000##FFFFFF
##4058C41.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C8
Deuteranopia (green-blind)
#005CC2
Tritanopia (blue-blind)
#007285
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4058c4;
/* rgb */ color: rgb(64, 88, 196);
/* oklch */ color: oklch(50.4% 0.170 269.8);
Tailwind
colors: {
  custom: {
    50: '#8486d7',
    500: '#4058c4',
    950: '#000000',
  },
}
SCSS
$custom: #4058c4;
$custom-light: #8486d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4058c4",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 196
  },
  "hsl": {
    "h": 229.091,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.50404,
    "c": 0.17041,
    "h": 269.8
  },
  "luminance": 0.12055
}

Semantic roles & 50–950 ramp

primary
#4058C4
secondary
#CDC393
accent
#C24CDC
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4058C4

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

Preview Lab → · Contrast checker → · Palette generator →

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