#4057D0#4057D0

#4057D0 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.2% C 0.188 H 270.2°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#4057D0
RGBrgb(64, 87, 208)
HSLhsl(230, 61%, 53%)
HSVhsv(230, 69%, 82%)
CMYKcmyk(69.2%, 58.2%, 0%, 18.4%)
CIE-LABlab(41.94, 31.46, -65.14)
CIE-LCHlch(41.94, 72.34, 295.77°)
OKLaboklab(51.16% 0.0006 -0.1878)
OKLCHoklch(51.16% 0.188 270.2)
XYZxyz(16.9038, 12.4588, 61.1762)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057D0 #D0B940
analogous
#409FD0 #4057D0 #7140D0
triadic
#4057D0 #D04057 #57D040
tetradic
#4057D0 #D0409F #D0B940 #40D071
square
#4057D0 #D0409F #D0B940 #40D071
split-complementary
#4057D0 #D07140 #9FD040
monochromatic
#1E2C78 #2A3EA9 #4057D0 #7182DC #A2ADE8

Accessibility & contrast

On white

6.01
#4057D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#4057D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057D0
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057D0#FFFFFF#000000##FFFFFF
##4057D01.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD4
Deuteranopia (green-blind)
#005DCE
Tritanopia (blue-blind)
#00758B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4057d0;
/* rgb */ color: rgb(64, 87, 208);
/* oklch */ color: oklch(51.2% 0.188 270.2);
Tailwind
colors: {
  custom: {
    50: '#8686df',
    500: '#4057d0',
    950: '#000000',
  },
}
SCSS
$custom: #4057d0;
$custom-light: #8686df;
$custom-dark: #000000;
JSON
{
  "hex": "#4057d0",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 208
  },
  "hsl": {
    "h": 230.417,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.51159,
    "c": 0.18777,
    "h": 270.2
  },
  "luminance": 0.1246
}

Semantic roles & 50–950 ramp

primary
#4057D0
secondary
#D5CB97
accent
#CA44E4
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0D0B15
muted
#7D7C83

Preview Lab

Preview with #4057D0

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

Preview Lab → · Contrast checker → · Palette generator →

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