#4057BB#4057BB

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

Color values

HEX#4057BB
RGBrgb(64, 87, 187)
HSLhsl(229, 49%, 49%)
HSVhsv(229, 66%, 73%)
CMYKcmyk(65.8%, 53.5%, 0%, 26.7%)
CIE-LABlab(40.40, 24.00, -55.46)
CIE-LCHlch(40.40, 60.43, 293.40°)
OKLaboklab(49.52% -0.0002 -0.1593)
OKLCHoklch(49.52% 0.159 269.9)
XYZxyz(14.4891, 11.4929, 48.4589)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057BB #BBA440
analogous
#4095BB #4057BB #6640BB
triadic
#4057BB #BB4057 #57BB40
tetradic
#4057BB #BB4095 #BBA440 #40BB66
square
#4057BB #BB4095 #BBA440 #40BB66
split-complementary
#4057BB #BB6640 #95BB40
monochromatic
#212D60 #30428D #4057BB #6C7ECD #99A6DC

Accessibility & contrast

On white

6.37
#4057BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#4057BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057BB
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057BB#FFFFFF#000000##FFFFFF
##4057BB1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1365BF
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#006F80
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4057bb;
/* rgb */ color: rgb(64, 87, 187);
/* oklch */ color: oklch(49.5% 0.159 269.9);
Tailwind
colors: {
  custom: {
    50: '#8286d0',
    500: '#4057bb',
    950: '#000000',
  },
}
SCSS
$custom: #4057bb;
$custom-light: #8286d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4057bb",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 187
  },
  "hsl": {
    "h": 228.78,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.49522,
    "c": 0.1593,
    "h": 269.9
  },
  "luminance": 0.11494
}

Semantic roles & 50–950 ramp

primary
#4057BB
secondary
#C8BD8F
accent
#BF4FD9
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #4057BB

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

Preview Lab → · Contrast checker → · Palette generator →

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