#4058BC#4058BC

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

Color values

HEX#4058BC
RGBrgb(64, 88, 188)
HSLhsl(228, 49%, 49%)
HSVhsv(228, 66%, 74%)
CMYKcmyk(66%, 53.2%, 0%, 26.3%)
CIE-LABlab(40.73, 23.71, -55.50)
CIE-LCHlch(40.73, 60.36, 293.13°)
OKLaboklab(49.8% -0.0011 -0.1594)
OKLCHoklch(49.8% 0.159 269.6)
XYZxyz(14.6781, 11.6989, 49.0518)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058BC #BCA440
analogous
#4096BC #4058BC #6640BC
triadic
#4058BC #BC4058 #58BC40
tetradic
#4058BC #BC4096 #BCA440 #40BC66
square
#4058BC #BC4096 #BCA440 #40BC66
split-complementary
#4058BC #BC6640 #96BC40
monochromatic
#212D61 #30438E #4058BC #6C7FCD #9AA7DD

Accessibility & contrast

On white

6.29
#4058BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#4058BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058BC
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058BC#FFFFFF#000000##FFFFFF
##4058BC1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1566C0
Deuteranopia (green-blind)
#005BBA
Tritanopia (blue-blind)
#007081
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4058bc;
/* rgb */ color: rgb(64, 88, 188);
/* oklch */ color: oklch(49.8% 0.159 269.6);
Tailwind
colors: {
  custom: {
    50: '#8286d1',
    500: '#4058bc',
    950: '#000000',
  },
}
SCSS
$custom: #4058bc;
$custom-light: #8286d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4058bc",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 188
  },
  "hsl": {
    "h": 228.387,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.49797,
    "c": 0.15941,
    "h": 269.6
  },
  "luminance": 0.117
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4058BC

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

Preview Lab → · Contrast checker → · Palette generator →

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