#4058BF#4058BF

#4058BF is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.0% C 0.164 H 269.7°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#4058BF
RGBrgb(64, 88, 191)
HSLhsl(229, 50%, 50%)
HSVhsv(229, 66%, 75%)
CMYKcmyk(66.5%, 53.9%, 0%, 25.1%)
CIE-LABlab(40.94, 24.78, -56.91)
CIE-LCHlch(40.94, 62.07, 293.53°)
OKLaboklab(50.02% -0.0009 -0.1636)
OKLCHoklch(50.02% 0.164 269.7)
XYZxyz(15.0048, 11.8296, 50.7727)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058BF #BFA740
analogous
#4098BF #4058BF #6740BF
triadic
#4058BF #BF4058 #58BF40
tetradic
#4058BF #BF4098 #BFA740 #40BF67
square
#4058BF #BF4098 #BFA740 #40BF67
split-complementary
#4058BF #BF6740 #98BF40
monochromatic
#212E63 #314391 #4058BF #6E80CE #9CA8DE

Accessibility & contrast

On white

6.24
#4058BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#4058BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058BF
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058BF#FFFFFF#000000##FFFFFF
##4058BF1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C67C3
Deuteranopia (green-blind)
#005BBD
Tritanopia (blue-blind)
#007183
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4058bf;
/* rgb */ color: rgb(64, 88, 191);
/* oklch */ color: oklch(50.0% 0.164 269.7);
Tailwind
colors: {
  custom: {
    50: '#8386d3',
    500: '#4058bf',
    950: '#000000',
  },
}
SCSS
$custom: #4058bf;
$custom-light: #8386d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4058bf",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 191
  },
  "hsl": {
    "h": 228.661,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.50023,
    "c": 0.16356,
    "h": 269.7
  },
  "luminance": 0.11831
}

Semantic roles & 50–950 ramp

primary
#4058BF
secondary
#CABF91
accent
#BF4ED9
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4058BF

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

Preview Lab → · Contrast checker → · Palette generator →

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