#4057CC#4057CC

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

Color values

HEX#4057CC
RGBrgb(64, 87, 204)
HSLhsl(230, 58%, 53%)
HSVhsv(230, 69%, 80%)
CMYKcmyk(68.6%, 57.4%, 0%, 20%)
CIE-LABlab(41.63, 30.04, -63.33)
CIE-LCHlch(41.63, 70.09, 295.38°)
OKLaboklab(50.84% 0.0006 -0.1824)
OKLCHoklch(50.84% 0.182 270.2)
XYZxyz(16.4179, 12.2644, 58.6171)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057CC #CCB540
analogous
#409DCC #4057CC #6F40CC
triadic
#4057CC #CC4057 #57CC40
tetradic
#4057CC #CC409D #CCB540 #40CC6F
square
#4057CC #CC409D #CCB540 #40CC6F
split-complementary
#4057CC #CC6F40 #9DCC40
monochromatic
#1F2D73 #2C3FA3 #4057CC #7081D9 #A1ACE6

Accessibility & contrast

On white

6.08
#4057CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#4057CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057CC
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057CC#FFFFFF#000000##FFFFFF
##4057CC1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#005CCA
Tritanopia (blue-blind)
#007489
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4057cc;
/* rgb */ color: rgb(64, 87, 204);
/* oklch */ color: oklch(50.8% 0.182 270.2);
Tailwind
colors: {
  custom: {
    50: '#8686dc',
    500: '#4057cc',
    950: '#000000',
  },
}
SCSS
$custom: #4057cc;
$custom-light: #8686dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4057cc",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 204
  },
  "hsl": {
    "h": 230.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50839,
    "c": 0.18245,
    "h": 270.2
  },
  "luminance": 0.12266
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4057CC

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

Preview Lab → · Contrast checker → · Palette generator →

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