#4057AF#4057AF

#4057AF is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.6% C 0.142 H 269.5°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#4057AF
RGBrgb(64, 87, 175)
HSLhsl(228, 46%, 47%)
HSVhsv(228, 63%, 69%)
CMYKcmyk(63.4%, 50.3%, 0%, 31.4%)
CIE-LABlab(39.58, 19.73, -49.73)
CIE-LCHlch(39.58, 53.50, 291.64°)
OKLaboklab(48.64% -0.0013 -0.1424)
OKLCHoklch(48.64% 0.142 269.5)
XYZxyz(13.2578, 11.0004, 41.9737)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057AF #AF9840
analogous
#408FAF #4057AF #6140AF
triadic
#4057AF #AF4057 #57AF40
tetradic
#4057AF #AF408F #AF9840 #40AF61
square
#4057AF #AF408F #AF9840 #40AF61
split-complementary
#4057AF #AF6140 #8FAF40
monochromatic
#1F2A55 #304182 #4057AF #657AC7 #92A0D7

Accessibility & contrast

On white

6.56
#4057AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#4057AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057AF
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057AF#FFFFFF#000000##FFFFFF
##4057AF1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2762B2
Deuteranopia (green-blind)
#0A59AD
Tritanopia (blue-blind)
#006B7B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4057af;
/* rgb */ color: rgb(64, 87, 175);
/* oklch */ color: oklch(48.6% 0.142 269.5);
Tailwind
colors: {
  custom: {
    50: '#8086c7',
    500: '#4057af',
    950: '#000000',
  },
}
SCSS
$custom: #4057af;
$custom-light: #8086c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4057af",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 175
  },
  "hsl": {
    "h": 227.568,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.48644,
    "c": 0.14244,
    "h": 269.5
  },
  "luminance": 0.11002
}

Semantic roles & 50–950 ramp

primary
#4057AF
secondary
#C3B688
accent
#BB52D6
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #4057AF

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

Preview Lab → · Contrast checker → · Palette generator →

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