#4058CE#4058CE

#4058CE is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.2% C 0.184 H 269.9°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#4058CE
RGBrgb(64, 88, 206)
HSLhsl(230, 59%, 53%)
HSVhsv(230, 69%, 81%)
CMYKcmyk(68.9%, 57.3%, 0%, 19.2%)
CIE-LABlab(42.04, 30.11, -63.83)
CIE-LCHlch(42.04, 70.58, 295.26°)
OKLaboklab(51.19% -0.0002 -0.1839)
OKLCHoklch(51.19% 0.184 269.9)
XYZxyz(16.7409, 12.5240, 59.9157)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058CE #CEB640
analogous
#409FCE #4058CE #6F40CE
triadic
#4058CE #CE4058 #58CE40
tetradic
#4058CE #CE409F #CEB640 #40CE6F
square
#4058CE #CE409F #CEB640 #40CE6F
split-complementary
#4058CE #CE6F40 #9FCE40
monochromatic
#1E2D75 #2B40A6 #4058CE #7183DA #A1ADE7

Accessibility & contrast

On white

5.99
#4058CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#4058CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058CE
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058CE#FFFFFF#000000##FFFFFF
##4058CE1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD2
Deuteranopia (green-blind)
#005DCC
Tritanopia (blue-blind)
#00758A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4058ce;
/* rgb */ color: rgb(64, 88, 206);
/* oklch */ color: oklch(51.2% 0.184 269.9);
Tailwind
colors: {
  custom: {
    50: '#8686de',
    500: '#4058ce',
    950: '#000000',
  },
}
SCSS
$custom: #4058ce;
$custom-light: #8686de;
$custom-dark: #000000;
JSON
{
  "hex": "#4058ce",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 206
  },
  "hsl": {
    "h": 229.859,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.51187,
    "c": 0.1839,
    "h": 269.9
  },
  "luminance": 0.12526
}

Semantic roles & 50–950 ramp

primary
#4058CE
secondary
#D4C996
accent
#C845E2
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0D0B15
muted
#7D7C83

Preview Lab

Preview with #4058CE

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

Preview Lab → · Contrast checker → · Palette generator →

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