#4058AE#4058AE

#4058AE is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.8% C 0.140 H 269.0°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#4058AE
RGBrgb(64, 88, 174)
HSLhsl(227, 46%, 47%)
HSVhsv(227, 63%, 68%)
CMYKcmyk(63.2%, 49.4%, 0%, 31.8%)
CIE-LABlab(39.79, 18.73, -48.80)
CIE-LCHlch(39.79, 52.27, 291.00°)
OKLaboklab(48.78% -0.0024 -0.1397)
OKLCHoklch(48.78% 0.14 269)
XYZxyz(13.2415, 11.1243, 41.4856)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058AE #AE9640
analogous
#408FAE #4058AE #5F40AE
triadic
#4058AE #AE4058 #58AE40
tetradic
#4058AE #AE408F #AE9640 #40AE5F
square
#4058AE #AE408F #AE9640 #40AE5F
split-complementary
#4058AE #AE5F40 #8FAE40
monochromatic
#1F2B55 #304181 #4058AE #657AC6 #92A1D7

Accessibility & contrast

On white

6.51
#4058AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#4058AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058AE
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058AE#FFFFFF#000000##FFFFFF
##4058AE1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B63B1
Deuteranopia (green-blind)
#1359AC
Tritanopia (blue-blind)
#006C7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4058ae;
/* rgb */ color: rgb(64, 88, 174);
/* oklch */ color: oklch(48.8% 0.140 269.0);
Tailwind
colors: {
  custom: {
    50: '#8086c7',
    500: '#4058ae',
    950: '#000000',
  },
}
SCSS
$custom: #4058ae;
$custom-light: #8086c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4058ae",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 174
  },
  "hsl": {
    "h": 226.909,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.4878,
    "c": 0.13972,
    "h": 269
  },
  "luminance": 0.11125
}

Semantic roles & 50–950 ramp

primary
#4058AE
secondary
#C2B588
accent
#B952D6
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #4058AE

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

Preview Lab → · Contrast checker → · Palette generator →

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