#4058BD#4058BD

#4058BD is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.9% C 0.161 H 269.6°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#4058BD
RGBrgb(64, 88, 189)
HSLhsl(228, 49%, 50%)
HSVhsv(228, 66%, 74%)
CMYKcmyk(66.1%, 53.4%, 0%, 25.9%)
CIE-LABlab(40.80, 24.07, -55.97)
CIE-LCHlch(40.80, 60.93, 293.27°)
OKLaboklab(49.87% -0.001 -0.1608)
OKLCHoklch(49.87% 0.161 269.6)
XYZxyz(14.7863, 11.7422, 49.6215)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058BD #BDA540
analogous
#4097BD #4058BD #6740BD
triadic
#4058BD #BD4058 #58BD40
tetradic
#4058BD #BD4097 #BDA540 #40BD67
square
#4058BD #BD4097 #BDA540 #40BD67
split-complementary
#4058BD #BD6740 #97BD40
monochromatic
#212D62 #31438F #4058BD #6D7FCD #9AA7DD

Accessibility & contrast

On white

6.27
#4058BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#4058BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058BD
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058BD#FFFFFF#000000##FFFFFF
##4058BD1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1266C1
Deuteranopia (green-blind)
#005BBB
Tritanopia (blue-blind)
#007082
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4058bd;
/* rgb */ color: rgb(64, 88, 189);
/* oklch */ color: oklch(49.9% 0.161 269.6);
Tailwind
colors: {
  custom: {
    50: '#8286d2',
    500: '#4058bd',
    950: '#000000',
  },
}
SCSS
$custom: #4058bd;
$custom-light: #8286d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4058bd",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 189
  },
  "hsl": {
    "h": 228.48,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.49872,
    "c": 0.16079,
    "h": 269.6
  },
  "luminance": 0.11744
}

Semantic roles & 50–950 ramp

primary
#4058BD
secondary
#C9BE90
accent
#BE4FD9
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #4058BD

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

Preview Lab → · Contrast checker → · Palette generator →

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