#4057A2#4057A2

#4057A2 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.7% C 0.124 H 268.6°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#4057A2
RGBrgb(64, 87, 162)
HSLhsl(226, 43%, 44%)
HSVhsv(226, 60%, 64%)
CMYKcmyk(60.5%, 46.3%, 0%, 36.5%)
CIE-LABlab(38.75, 15.13, -43.35)
CIE-LCHlch(38.75, 45.91, 289.25°)
OKLaboklab(47.74% -0.0031 -0.1237)
OKLCHoklch(47.74% 0.124 268.6)
XYZxyz(12.0419, 10.5140, 35.5702)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057A2 #A28B40
analogous
#4088A2 #4057A2 #5A40A2
triadic
#4057A2 #A24057 #57A240
tetradic
#4057A2 #A24088 #A28B40 #40A25A
square
#4057A2 #A24088 #A28B40 #40A25A
split-complementary
#4057A2 #A25A40 #88A240
monochromatic
#1D284A #2F3F76 #4057A2 #5F76C0 #8B9CD1

Accessibility & contrast

On white

6.77
#4057A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#4057A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057A2
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057A2#FFFFFF#000000##FFFFFF
##4057A21.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3460A5
Deuteranopia (green-blind)
#2557A0
Tritanopia (blue-blind)
#006874
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4057a2;
/* rgb */ color: rgb(64, 87, 162);
/* oklch */ color: oklch(47.7% 0.124 268.6);
Tailwind
colors: {
  custom: {
    50: '#7e86be',
    500: '#4057a2',
    950: '#000000',
  },
}
SCSS
$custom: #4057a2;
$custom-light: #7e86be;
$custom-dark: #000000;
JSON
{
  "hex": "#4057a2",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 162
  },
  "hsl": {
    "h": 225.918,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47743,
    "c": 0.12371,
    "h": 268.6
  },
  "luminance": 0.10515
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4057A2

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

Preview Lab → · Contrast checker → · Palette generator →

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