#4057CD#4057CD

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

Color values

HEX#4057CD
RGBrgb(64, 87, 205)
HSLhsl(230, 59%, 53%)
HSVhsv(230, 69%, 80%)
CMYKcmyk(68.8%, 57.6%, 0%, 19.6%)
CIE-LABlab(41.71, 30.39, -63.79)
CIE-LCHlch(41.71, 70.66, 295.48°)
OKLaboklab(50.92% 0.0006 -0.1838)
OKLCHoklch(50.92% 0.184 270.2)
XYZxyz(16.5382, 12.3125, 59.2508)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057CD #CDB640
analogous
#409DCD #4057CD #7040CD
triadic
#4057CD #CD4057 #57CD40
tetradic
#4057CD #CD409D #CDB640 #40CD70
square
#4057CD #CD409D #CDB640 #40CD70
split-complementary
#4057CD #CD7040 #9DCD40
monochromatic
#1E2C74 #2B3FA5 #4057CD #7182DA #A1ACE6

Accessibility & contrast

On white

6.06
#4057CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#4057CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057CD
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057CD#FFFFFF#000000##FFFFFF
##4057CD1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4057cd;
/* rgb */ color: rgb(64, 87, 205);
/* oklch */ color: oklch(50.9% 0.184 270.2);
Tailwind
colors: {
  custom: {
    50: '#8686dd',
    500: '#4057cd',
    950: '#000000',
  },
}
SCSS
$custom: #4057cd;
$custom-light: #8686dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4057cd",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 205
  },
  "hsl": {
    "h": 230.213,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50918,
    "c": 0.18379,
    "h": 270.2
  },
  "luminance": 0.12314
}

Semantic roles & 50–950 ramp

primary
#4057CD
secondary
#D3C996
accent
#C846E2
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4057CD

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

Preview Lab → · Contrast checker → · Palette generator →

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