#4057CB#4057CB

#4057CB is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.8% C 0.181 H 270.2°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#4057CB
RGBrgb(64, 87, 203)
HSLhsl(230, 57%, 52%)
HSVhsv(230, 68%, 80%)
CMYKcmyk(68.5%, 57.1%, 0%, 20.4%)
CIE-LABlab(41.56, 29.69, -62.88)
CIE-LCHlch(41.56, 69.53, 295.27°)
OKLaboklab(50.76% 0.0005 -0.1811)
OKLCHoklch(50.76% 0.181 270.2)
XYZxyz(16.2984, 12.2166, 57.9874)
Luminance0.1222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057CB #CBB440
analogous
#409DCB #4057CB #6F40CB
triadic
#4057CB #CB4057 #57CB40
tetradic
#4057CB #CB409D #CBB440 #40CB6F
square
#4057CB #CB409D #CBB440 #40CB6F
split-complementary
#4057CB #CB6F40 #9DCB40
monochromatic
#1F2D72 #2C40A2 #4057CB #7081D8 #A0ACE5

Accessibility & contrast

On white

6.10
#4057CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#4057CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057CB
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057CB#FFFFFF#000000##FFFFFF
##4057CB1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#005CC9
Tritanopia (blue-blind)
#007388
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4057cb;
/* rgb */ color: rgb(64, 87, 203);
/* oklch */ color: oklch(50.8% 0.181 270.2);
Tailwind
colors: {
  custom: {
    50: '#8586dc',
    500: '#4057cb',
    950: '#000000',
  },
}
SCSS
$custom: #4057cb;
$custom-light: #8586dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4057cb",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 203
  },
  "hsl": {
    "h": 230.072,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.50759,
    "c": 0.18111,
    "h": 270.2
  },
  "luminance": 0.12218
}

Semantic roles & 50–950 ramp

primary
#4057CB
secondary
#D2C895
accent
#C747E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4057CB

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

Preview Lab → · Contrast checker → · Palette generator →

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