#4057A3#4057A3

#4057A3 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.8% C 0.125 H 268.7°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#4057A3
RGBrgb(64, 87, 163)
HSLhsl(226, 44%, 45%)
HSVhsv(226, 61%, 64%)
CMYKcmyk(60.7%, 46.6%, 0%, 36.1%)
CIE-LABlab(38.81, 15.49, -43.85)
CIE-LCHlch(38.81, 46.50, 289.45°)
OKLaboklab(47.81% -0.0029 -0.1251)
OKLCHoklch(47.81% 0.125 268.7)
XYZxyz(12.1312, 10.5497, 36.0402)
Luminance0.1055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057A3 #A38C40
analogous
#4088A3 #4057A3 #5B40A3
triadic
#4057A3 #A34057 #57A340
tetradic
#4057A3 #A34088 #A38C40 #40A35B
square
#4057A3 #A34088 #A38C40 #40A35B
split-complementary
#4057A3 #A35B40 #88A340
monochromatic
#1D284B #2F4077 #4057A3 #6076C0 #8C9CD2

Accessibility & contrast

On white

6.75
#4057A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#4057A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057A3
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057A3#FFFFFF#000000##FFFFFF
##4057A31.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3360A6
Deuteranopia (green-blind)
#2457A1
Tritanopia (blue-blind)
#006875
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4057a3;
/* rgb */ color: rgb(64, 87, 163);
/* oklch */ color: oklch(47.8% 0.125 268.7);
Tailwind
colors: {
  custom: {
    50: '#7e86bf',
    500: '#4057a3',
    950: '#000000',
  },
}
SCSS
$custom: #4057a3;
$custom-light: #7e86bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4057a3",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 163
  },
  "hsl": {
    "h": 226.061,
    "s": 43.612,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4781,
    "c": 0.12516,
    "h": 268.7
  },
  "luminance": 0.10551
}

Semantic roles & 50–950 ramp

primary
#4057A3
secondary
#BDAF82
accent
#B654D3
background
#F8F8FB
surface
#EFEFF7
border
#CACAD0
text
#0B0B12
muted
#7C7C81

Preview Lab

Preview with #4057A3

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

Preview Lab → · Contrast checker → · Palette generator →

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