#4058D4#4058D4

#4058D4 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.7% C 0.192 H 270.0°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#4058D4
RGBrgb(64, 88, 212)
HSLhsl(230, 63%, 54%)
HSVhsv(230, 70%, 83%)
CMYKcmyk(69.8%, 58.5%, 0%, 16.9%)
CIE-LABlab(42.49, 32.24, -66.53)
CIE-LCHlch(42.49, 73.93, 295.85°)
OKLaboklab(51.67% -0.0001 -0.1918)
OKLCHoklch(51.67% 0.192 270)
XYZxyz(17.4837, 12.8212, 63.8279)
Luminance0.1282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058D4 #D4BC40
analogous
#40A2D4 #4058D4 #7240D4
triadic
#4058D4 #D44058 #58D440
tetradic
#4058D4 #D440A2 #D4BC40 #40D472
square
#4058D4 #D440A2 #D4BC40 #40D472
split-complementary
#4058D4 #D47240 #A2D440
monochromatic
#1C2C7D #273EAF #4058D4 #7284DF #A4AFEA

Accessibility & contrast

On white

5.89
#4058D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#4058D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058D4
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058D4#FFFFFF#000000##FFFFFF
##4058D41.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD8
Deuteranopia (green-blind)
#005ED2
Tritanopia (blue-blind)
#00778D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4058d4;
/* rgb */ color: rgb(64, 88, 212);
/* oklch */ color: oklch(51.7% 0.192 270.0);
Tailwind
colors: {
  custom: {
    50: '#8786e2',
    500: '#4058d4',
    950: '#000000',
  },
}
SCSS
$custom: #4058d4;
$custom-light: #8786e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4058d4",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 212
  },
  "hsl": {
    "h": 230.27,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5167,
    "c": 0.19185,
    "h": 270
  },
  "luminance": 0.12823
}

Semantic roles & 50–950 ramp

primary
#4058D4
secondary
#D7CD98
accent
#CC42E6
background
#F9F8FE
surface
#F1EFFC
border
#CBCAD5
text
#0D0B15
muted
#7E7C84

Preview Lab

Preview with #4058D4

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

Preview Lab → · Contrast checker → · Palette generator →

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