#4058C6#4058C6

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

Color values

HEX#4058C6
RGBrgb(64, 88, 198)
HSLhsl(229, 54%, 51%)
HSVhsv(229, 68%, 78%)
CMYKcmyk(67.7%, 55.6%, 0%, 22.4%)
CIE-LABlab(41.45, 27.27, -60.17)
CIE-LCHlch(41.45, 66.06, 294.39°)
OKLaboklab(50.56% -0.0005 -0.1731)
OKLCHoklch(50.56% 0.173 269.8)
XYZxyz(15.7936, 12.1451, 54.9271)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058C6 #C6AE40
analogous
#409BC6 #4058C6 #6B40C6
triadic
#4058C6 #C64058 #58C640
tetradic
#4058C6 #C6409B #C6AE40 #40C66B
square
#4058C6 #C6409B #C6AE40 #40C66B
split-complementary
#4058C6 #C66B40 #9BC640
monochromatic
#202E6C #2E429B #4058C6 #6F81D4 #9EAAE2

Accessibility & contrast

On white

6.12
#4058C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#4058C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058C6
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058C6#FFFFFF#000000##FFFFFF
##4058C61.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CA
Deuteranopia (green-blind)
#005CC4
Tritanopia (blue-blind)
#007386
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4058c6;
/* rgb */ color: rgb(64, 88, 198);
/* oklch */ color: oklch(50.6% 0.173 269.8);
Tailwind
colors: {
  custom: {
    50: '#8486d8',
    500: '#4058c6',
    950: '#000000',
  },
}
SCSS
$custom: #4058c6;
$custom-light: #8486d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4058c6",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 198
  },
  "hsl": {
    "h": 229.254,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.50558,
    "c": 0.17313,
    "h": 269.8
  },
  "luminance": 0.12147
}

Semantic roles & 50–950 ramp

primary
#4058C6
secondary
#CEC493
accent
#C34ADD
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4058C6

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

Preview Lab → · Contrast checker → · Palette generator →

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