#4058A2#4058A2

#4058A2 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.0% C 0.122 H 268.1°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#4058A2
RGBrgb(64, 88, 162)
HSLhsl(225, 43%, 44%)
HSVhsv(225, 60%, 64%)
CMYKcmyk(60.5%, 45.7%, 0%, 36.5%)
CIE-LABlab(39.03, 14.49, -42.90)
CIE-LCHlch(39.03, 45.28, 288.66°)
OKLaboklab(47.96% -0.0041 -0.1223)
OKLCHoklch(47.96% 0.122 268.1)
XYZxyz(12.1235, 10.6771, 35.5974)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058A2 #A28A40
analogous
#4089A2 #4058A2 #5940A2
triadic
#4058A2 #A24058 #58A240
tetradic
#4058A2 #A24089 #A28A40 #40A259
square
#4058A2 #A24089 #A28A40 #40A259
split-complementary
#4058A2 #A25940 #89A240
monochromatic
#1D284A #2F4076 #4058A2 #5F77C0 #8B9CD1

Accessibility & contrast

On white

6.70
#4058A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#4058A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4058A2#FFFFFF#000000##FFFFFF
##4058A21.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3661A5
Deuteranopia (green-blind)
#2758A0
Tritanopia (blue-blind)
#006975
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4058a2;
/* rgb */ color: rgb(64, 88, 162);
/* oklch */ color: oklch(48.0% 0.122 268.1);
Tailwind
colors: {
  custom: {
    50: '#7e86be',
    500: '#4058a2',
    950: '#000000',
  },
}
SCSS
$custom: #4058a2;
$custom-light: #7e86be;
$custom-dark: #000000;
JSON
{
  "hex": "#4058a2",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 162
  },
  "hsl": {
    "h": 225.306,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47958,
    "c": 0.12241,
    "h": 268.1
  },
  "luminance": 0.10678
}

Semantic roles & 50–950 ramp

primary
#4058A2
secondary
#BCAE82
accent
#B455D3
background
#F8F8FB
surface
#EFEFF7
border
#CACAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #4058A2

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

Preview Lab → · Contrast checker → · Palette generator →

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