#4057CF#4057CF

#4057CF is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.1% C 0.186 H 270.2°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#4057CF
RGBrgb(64, 87, 207)
HSLhsl(230, 60%, 53%)
HSVhsv(230, 69%, 81%)
CMYKcmyk(69.1%, 58%, 0%, 18.8%)
CIE-LABlab(41.86, 31.10, -64.69)
CIE-LCHlch(41.86, 71.78, 295.68°)
OKLaboklab(51.08% 0.0006 -0.1864)
OKLCHoklch(51.08% 0.186 270.2)
XYZxyz(16.7812, 12.4097, 60.5303)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057CF #CFB840
analogous
#409ECF #4057CF #7040CF
triadic
#4057CF #CF4057 #57CF40
tetradic
#4057CF #CF409E #CFB840 #40CF70
square
#4057CF #CF409E #CFB840 #40CF70
split-complementary
#4057CF #CF7040 #9ECF40
monochromatic
#1E2C77 #2A3EA8 #4057CF #7182DB #A2ADE8

Accessibility & contrast

On white

6.03
#4057CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#4057CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057CF
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057CF#FFFFFF#000000##FFFFFF
##4057CF1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD3
Deuteranopia (green-blind)
#005CCD
Tritanopia (blue-blind)
#00758A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4057cf;
/* rgb */ color: rgb(64, 87, 207);
/* oklch */ color: oklch(51.1% 0.186 270.2);
Tailwind
colors: {
  custom: {
    50: '#8686df',
    500: '#4057cf',
    950: '#000000',
  },
}
SCSS
$custom: #4057cf;
$custom-light: #8686df;
$custom-dark: #000000;
JSON
{
  "hex": "#4057cf",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 207
  },
  "hsl": {
    "h": 230.35,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.51079,
    "c": 0.18645,
    "h": 270.2
  },
  "luminance": 0.12411
}

Semantic roles & 50–950 ramp

primary
#4057CF
secondary
#D4CA97
accent
#CA45E3
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0D0B15
muted
#7D7C83

Preview Lab

Preview with #4057CF

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

Preview Lab → · Contrast checker → · Palette generator →

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