#4057B2#4057B2

#4057B2 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.9% C 0.147 H 269.6°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#4057B2
RGBrgb(64, 87, 178)
HSLhsl(228, 47%, 47%)
HSVhsv(228, 64%, 70%)
CMYKcmyk(64%, 51.1%, 0%, 30.2%)
CIE-LABlab(39.78, 20.80, -51.18)
CIE-LCHlch(39.78, 55.24, 292.12°)
OKLaboklab(48.86% -0.001 -0.1467)
OKLCHoklch(48.86% 0.147 269.6)
XYZxyz(13.5557, 11.1195, 43.5428)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057B2 #B29B40
analogous
#4090B2 #4057B2 #6240B2
triadic
#4057B2 #B24057 #57B240
tetradic
#4057B2 #B24090 #B29B40 #40B262
square
#4057B2 #B24090 #B29B40 #40B262
split-complementary
#4057B2 #B26240 #90B240
monochromatic
#202B58 #304185 #4057B2 #677BC8 #94A2D8

Accessibility & contrast

On white

6.51
#4057B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#4057B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057B2
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057B2#FFFFFF#000000##FFFFFF
##4057B21.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2363B5
Deuteranopia (green-blind)
#0059B0
Tritanopia (blue-blind)
#006C7C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4057b2;
/* rgb */ color: rgb(64, 87, 178);
/* oklch */ color: oklch(48.9% 0.147 269.6);
Tailwind
colors: {
  custom: {
    50: '#8086ca',
    500: '#4057b2',
    950: '#000000',
  },
}
SCSS
$custom: #4057b2;
$custom-light: #8086ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4057b2",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 178
  },
  "hsl": {
    "h": 227.895,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48859,
    "c": 0.14669,
    "h": 269.6
  },
  "luminance": 0.11121
}

Semantic roles & 50–950 ramp

primary
#4057B2
secondary
#C4B88A
accent
#BC51D7
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #4057B2

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

Preview Lab → · Contrast checker → · Palette generator →

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