#4058B4#4058B4

#4058B4 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.2% C 0.148 H 269.3°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#4058B4
RGBrgb(64, 88, 180)
HSLhsl(228, 48%, 48%)
HSVhsv(228, 64%, 71%)
CMYKcmyk(64.4%, 51.1%, 0%, 29.4%)
CIE-LABlab(40.19, 20.86, -51.70)
CIE-LCHlch(40.19, 55.75, 291.98°)
OKLaboklab(49.21% -0.0018 -0.1482)
OKLCHoklch(49.21% 0.148 269.3)
XYZxyz(13.8395, 11.3635, 44.6352)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058B4 #B49C40
analogous
#4092B4 #4058B4 #6240B4
triadic
#4058B4 #B44058 #58B440
tetradic
#4058B4 #B44092 #B49C40 #40B462
square
#4058B4 #B44092 #B49C40 #40B462
split-complementary
#4058B4 #B46240 #92B440
monochromatic
#202C5A #304287 #4058B4 #687CC9 #95A3D9

Accessibility & contrast

On white

6.42
#4058B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#4058B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058B4
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058B4#FFFFFF#000000##FFFFFF
##4058B41.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2364B7
Deuteranopia (green-blind)
#005AB2
Tritanopia (blue-blind)
#006D7D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4058b4;
/* rgb */ color: rgb(64, 88, 180);
/* oklch */ color: oklch(49.2% 0.148 269.3);
Tailwind
colors: {
  custom: {
    50: '#8186cb',
    500: '#4058b4',
    950: '#000000',
  },
}
SCSS
$custom: #4058b4;
$custom-light: #8186cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4058b4",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 180
  },
  "hsl": {
    "h": 227.586,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49209,
    "c": 0.14823,
    "h": 269.3
  },
  "luminance": 0.11365
}

Semantic roles & 50–950 ramp

primary
#4058B4
secondary
#C5B98B
accent
#BB51D7
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #4058B4

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

Preview Lab → · Contrast checker → · Palette generator →

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