#4058AA#4058AA

#4058AA is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.5% C 0.134 H 268.7°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#4058AA
RGBrgb(64, 88, 170)
HSLhsl(226, 45%, 46%)
HSVhsv(226, 62%, 67%)
CMYKcmyk(62.4%, 48.2%, 0%, 33.3%)
CIE-LABlab(39.53, 17.31, -46.85)
CIE-LCHlch(39.53, 49.95, 290.28°)
OKLaboklab(48.5% -0.0029 -0.134)
OKLCHoklch(48.5% 0.134 268.7)
XYZxyz(12.8573, 10.9706, 39.4624)
Luminance0.1097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058AA #AA9240
analogous
#408DAA #4058AA #5D40AA
triadic
#4058AA #AA4058 #58AA40
tetradic
#4058AA #AA408D #AA9240 #40AA5D
square
#4058AA #AA408D #AA9240 #40AA5D
split-complementary
#4058AA #AA5D40 #8DAA40
monochromatic
#1F2A51 #2F417E #4058AA #6379C4 #8F9FD5

Accessibility & contrast

On white

6.57
#4058AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#4058AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4058AA#FFFFFF#000000##FFFFFF
##4058AA1.006.573.196.57
#FFFFFF6.571.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F62AD
Deuteranopia (green-blind)
#1B59A8
Tritanopia (blue-blind)
#006B79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4058aa;
/* rgb */ color: rgb(64, 88, 170);
/* oklch */ color: oklch(48.5% 0.134 268.7);
Tailwind
colors: {
  custom: {
    50: '#7f86c4',
    500: '#4058aa',
    950: '#000000',
  },
}
SCSS
$custom: #4058aa;
$custom-light: #7f86c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4058aa",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 170
  },
  "hsl": {
    "h": 226.415,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48501,
    "c": 0.13399,
    "h": 268.7
  },
  "luminance": 0.10972
}

Semantic roles & 50–950 ramp

primary
#4058AA
secondary
#C0B386
accent
#B853D5
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #4058AA

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

Preview Lab → · Contrast checker → · Palette generator →

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