#4057C8#4057C8

#4057C8 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.5% C 0.177 H 270.1°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#4057C8
RGBrgb(64, 87, 200)
HSLhsl(230, 55%, 52%)
HSVhsv(230, 68%, 78%)
CMYKcmyk(68%, 56.5%, 0%, 21.6%)
CIE-LABlab(41.34, 28.62, -61.50)
CIE-LCHlch(41.34, 67.84, 294.96°)
OKLaboklab(50.52% 0.0004 -0.1771)
OKLCHoklch(50.52% 0.177 270.1)
XYZxyz(15.9443, 12.0750, 56.1228)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057C8 #C8B140
analogous
#409BC8 #4057C8 #6D40C8
triadic
#4057C8 #C84057 #57C840
tetradic
#4057C8 #C8409B #C8B140 #40C86D
square
#4057C8 #C8409B #C8B140 #40C86D
split-complementary
#4057C8 #C86D40 #9BC840
monochromatic
#202D6E #2D409D #4057C8 #7081D6 #9FABE3

Accessibility & contrast

On white

6.15
#4057C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#4057C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057C8
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057C8#FFFFFF#000000##FFFFFF
##4057C81.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CC
Deuteranopia (green-blind)
#005CC6
Tritanopia (blue-blind)
#007387
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4057c8;
/* rgb */ color: rgb(64, 87, 200);
/* oklch */ color: oklch(50.5% 0.177 270.1);
Tailwind
colors: {
  custom: {
    50: '#8586d9',
    500: '#4057c8',
    950: '#000000',
  },
}
SCSS
$custom: #4057c8;
$custom-light: #8586d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4057c8",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 200
  },
  "hsl": {
    "h": 229.853,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.50522,
    "c": 0.17708,
    "h": 270.1
  },
  "luminance": 0.12077
}

Semantic roles & 50–950 ramp

primary
#4057C8
secondary
#D0C694
accent
#C549DF
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4057C8

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

Preview Lab → · Contrast checker → · Palette generator →

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