#4057BA#4057BA

#4057BA is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.4% C 0.158 H 269.9°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#4057BA
RGBrgb(64, 87, 186)
HSLhsl(229, 49%, 49%)
HSVhsv(229, 66%, 73%)
CMYKcmyk(65.6%, 53.2%, 0%, 27.1%)
CIE-LABlab(40.33, 23.65, -54.99)
CIE-LCHlch(40.33, 59.86, 293.27°)
OKLaboklab(49.45% -0.0003 -0.1579)
OKLCHoklch(49.45% 0.158 269.9)
XYZxyz(14.3825, 11.4502, 47.8970)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057BA #BAA340
analogous
#4094BA #4057BA #6640BA
triadic
#4057BA #BA4057 #57BA40
tetradic
#4057BA #BA4094 #BAA340 #40BA66
square
#4057BA #BA4094 #BAA340 #40BA66
split-complementary
#4057BA #BA6640 #94BA40
monochromatic
#212C5F #30428C #4057BA #6B7DCC #99A5DC

Accessibility & contrast

On white

6.38
#4057BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#4057BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057BA
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057BA#FFFFFF#000000##FFFFFF
##4057BA1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1565BD
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#006E80
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4057ba;
/* rgb */ color: rgb(64, 87, 186);
/* oklch */ color: oklch(49.4% 0.158 269.9);
Tailwind
colors: {
  custom: {
    50: '#8286cf',
    500: '#4057ba',
    950: '#000000',
  },
}
SCSS
$custom: #4057ba;
$custom-light: #8286cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4057ba",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 186
  },
  "hsl": {
    "h": 228.689,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.49447,
    "c": 0.15791,
    "h": 269.9
  },
  "luminance": 0.11452
}

Semantic roles & 50–950 ramp

primary
#4057BA
secondary
#C8BD8E
accent
#BF4FD8
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #4057BA

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

Preview Lab → · Contrast checker → · Palette generator →

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