#4057D8#4057D8

#4057D8 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.8% C 0.198 H 270.2°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#4057D8
RGBrgb(64, 87, 216)
HSLhsl(231, 66%, 55%)
HSVhsv(231, 70%, 85%)
CMYKcmyk(70.4%, 59.7%, 0%, 15.3%)
CIE-LABlab(42.56, 34.28, -68.72)
CIE-LCHlch(42.56, 76.80, 296.51°)
OKLaboklab(51.81% 0.0007 -0.1983)
OKLCHoklch(51.81% 0.198 270.2)
XYZxyz(17.9130, 12.8624, 66.4911)
Luminance0.1286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057D8 #D8C140
analogous
#40A3D8 #4057D8 #7540D8
triadic
#4057D8 #D84057 #57D840
tetradic
#4057D8 #D840A3 #D8C140 #40D875
square
#4057D8 #D840A3 #D8C140 #40D875
split-complementary
#4057D8 #D87540 #A3D840
monochromatic
#1B2A83 #253BB6 #4057D8 #7384E2 #A6B0ED

Accessibility & contrast

On white

5.88
#4057D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#4057D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057D8
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057D8#FFFFFF#000000##FFFFFF
##4057D81.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDC
Deuteranopia (green-blind)
#005ED5
Tritanopia (blue-blind)
#00778F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4057d8;
/* rgb */ color: rgb(64, 87, 216);
/* oklch */ color: oklch(51.8% 0.198 270.2);
Tailwind
colors: {
  custom: {
    50: '#8886e5',
    500: '#4057d8',
    950: '#000000',
  },
}
SCSS
$custom: #4057d8;
$custom-light: #8886e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4057d8",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 216
  },
  "hsl": {
    "h": 230.921,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.51813,
    "c": 0.19829,
    "h": 270.2
  },
  "luminance": 0.12864
}

Semantic roles & 50–950 ramp

primary
#4057D8
secondary
#DAD09A
accent
#CF3FE9
background
#F9F8FE
surface
#F1EFFC
border
#CBCAD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #4057D8

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

Preview Lab → · Contrast checker → · Palette generator →

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