#4058AC#4058AC

#4058AC is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.6% C 0.137 H 268.9°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#4058AC
RGBrgb(64, 88, 172)
HSLhsl(227, 46%, 46%)
HSVhsv(227, 63%, 67%)
CMYKcmyk(62.8%, 48.8%, 0%, 32.5%)
CIE-LABlab(39.66, 18.02, -47.83)
CIE-LCHlch(39.66, 51.11, 290.64°)
OKLaboklab(48.64% -0.0027 -0.1368)
OKLCHoklch(48.64% 0.137 268.9)
XYZxyz(13.0479, 11.0469, 40.4664)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058AC #AC9440
analogous
#408EAC #4058AC #5E40AC
triadic
#4058AC #AC4058 #58AC40
tetradic
#4058AC #AC408E #AC9440 #40AC5E
square
#4058AC #AC408E #AC9440 #40AC5E
split-complementary
#4058AC #AC5E40 #8EAC40
monochromatic
#1F2A53 #2F417F #4058AC #647AC5 #91A0D6

Accessibility & contrast

On white

6.54
#4058AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#4058AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058AC
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058AC#FFFFFF#000000##FFFFFF
##4058AC1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D63AF
Deuteranopia (green-blind)
#1759AA
Tritanopia (blue-blind)
#006B7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4058ac;
/* rgb */ color: rgb(64, 88, 172);
/* oklch */ color: oklch(48.6% 0.137 268.9);
Tailwind
colors: {
  custom: {
    50: '#7f86c5',
    500: '#4058ac',
    950: '#000000',
  },
}
SCSS
$custom: #4058ac;
$custom-light: #7f86c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4058ac",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 172
  },
  "hsl": {
    "h": 226.667,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4864,
    "c": 0.13687,
    "h": 268.9
  },
  "luminance": 0.11048
}

Semantic roles & 50–950 ramp

primary
#4058AC
secondary
#C1B487
accent
#B852D5
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #4058AC

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

Preview Lab → · Contrast checker → · Palette generator →

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