#4057AC#4057AC

#4057AC is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.4% C 0.138 H 269.3°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#4057AC
RGBrgb(64, 87, 172)
HSLhsl(227, 46%, 46%)
HSVhsv(227, 63%, 67%)
CMYKcmyk(62.8%, 49.4%, 0%, 32.5%)
CIE-LABlab(39.38, 18.67, -48.27)
CIE-LCHlch(39.38, 51.76, 291.14°)
OKLaboklab(48.43% -0.0017 -0.1381)
OKLCHoklch(48.43% 0.138 269.3)
XYZxyz(12.9664, 10.8838, 40.4392)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057AC #AC9540
analogous
#408DAC #4057AC #5F40AC
triadic
#4057AC #AC4057 #57AC40
tetradic
#4057AC #AC408D #AC9540 #40AC5F
square
#4057AC #AC408D #AC9540 #40AC5F
split-complementary
#4057AC #AC5F40 #8DAC40
monochromatic
#1F2A53 #2F407F #4057AC #6479C5 #919FD6

Accessibility & contrast

On white

6.61
#4057AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#4057AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057AC
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057AC#FFFFFF#000000##FFFFFF
##4057AC1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A62AF
Deuteranopia (green-blind)
#1458AA
Tritanopia (blue-blind)
#006B79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4057ac;
/* rgb */ color: rgb(64, 87, 172);
/* oklch */ color: oklch(48.4% 0.138 269.3);
Tailwind
colors: {
  custom: {
    50: '#7f86c5',
    500: '#4057ac',
    950: '#000000',
  },
}
SCSS
$custom: #4057ac;
$custom-light: #7f86c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4057ac",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 172
  },
  "hsl": {
    "h": 227.222,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48431,
    "c": 0.13816,
    "h": 269.3
  },
  "luminance": 0.10885
}

Semantic roles & 50–950 ramp

primary
#4057AC
secondary
#C1B587
accent
#BA52D5
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #4057AC

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

Preview Lab → · Contrast checker → · Palette generator →

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